codekingpro/portable-devtools
114k
1" Vim filetype plugin file2" Language: FlexWiki, http://www.flexwiki.com/3" Maintainer: George V. Reilly <george@reilly.org>4" Home: http://www.georgevreilly.com/vim/flexwiki/5" Other Home: http://www.vim.org/scripts/script.php?script_id=15296" Author: George V. Reilly7" Filenames: *.wiki8" Last Change: Wed Apr 26 11:00 PM 2006 P9" Version: 0.310 11if exists("b:did_ftplugin")12 finish13endif14 15let b:did_ftplugin = 1 " Don't load another plugin for this buffer16 17" Reset the following options to undo this plugin.18let b:undo_ftplugin = "setl tw< wrap< lbr< et< ts< fenc< bomb< ff<"19 20" Allow lines of unlimited length. Do NOT want automatic linebreaks,21" as a newline starts a new paragraph in FlexWiki.22setlocal textwidth=023" Wrap long lines, rather than using horizontal scrolling.24setlocal wrap25" Wrap at a character in 'breakat' rather than at last char on screen26setlocal linebreak27" Don't transform <TAB> characters into spaces, as they are significant28" at the beginning of the line for numbered and bulleted lists.29setlocal noexpandtab30" 4-char tabstops, per flexwiki.el31setlocal tabstop=432" Save *.wiki files in UTF-833setlocal fileencoding=utf-834" Add the UTF-8 Byte Order Mark to the beginning of the file35setlocal bomb36" Save <EOL>s as \n, not \r\n37setlocal fileformat=unix38 39if exists("g:flexwiki_maps")40 " Move up and down by display lines, to account for screen wrapping41 " of very long lines42 nmap <buffer> <Up> gk43 nmap <buffer> k gk44 vmap <buffer> <Up> gk45 vmap <buffer> k gk46 47 nmap <buffer> <Down> gj48 nmap <buffer> j gj49 vmap <buffer> <Down> gj50 vmap <buffer> j gj51 52 " for earlier versions - for when 'wrap' is set53 imap <buffer> <S-Down> <C-o>gj54 imap <buffer> <S-Up> <C-o>gk55 if v:version >= 70056 imap <buffer> <Down> <C-o>gj57 imap <buffer> <Up> <C-o>gk58 endif59endif60 