" Vim filetype plugin file " Language: Wiki " Author: Maxim Kim (habamax at gmail dot com) " Home: http://code.google.com/p/vimwiki/ " Filenames: *.wiki " Last Change: (16.05.2008 14:28) " Version: 0.3.1 if exists("b:did_ftplugin") finish endif let b:did_ftplugin = 1 " Don't load another plugin for this buffer "" Defaults """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Reset the following options to undo this plugin. let b:undo_ftplugin = "setl tw< wrap< lbr< fenc< ff< sua< isf< awa< com< fo<" setlocal textwidth=0 setlocal wrap setlocal linebreak setlocal fileencoding=utf-8 setlocal fileformat=unix setlocal autowriteall " for gf execute 'setlocal suffixesadd='.g:vimwiki_ext setlocal isfname-=[,] if g:vimwiki_smartCR>=2 setlocal comments=b:*,b:# setlocal formatoptions=ctnqro endif "" Keybindings {{{ """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" nmap gk nmap k gk vmap gk vmap k gk nmap gj nmap j gj vmap gj vmap j gj imap gj imap gk nmap :call WikiFollowWord('nosplit') nmap :call WikiFollowWord('split') nmap :call WikiFollowWord('vsplit') nmap nmap noremap <2-LeftMouse> :call WikiFollowWord('nosplit') noremap :call WikiFollowWord('split') noremap :call WikiFollowWord('vsplit') nmap :call WikiGoBackWord() nmap :call WikiGoBackWord() nmap :call WikiNextWord() nmap :call WikiPrevWord() nmap wd :call WikiDeleteWord() nmap wr :call WikiRenameWord() if g:vimwiki_smartCR==1 inoremap :call WikiNewLine() endif " Keybindings }}}