Don't set fuf stuff on versions < 703

This commit is contained in:
Hunter Haugen 2012-06-13 11:01:10 -07:00
parent c9a2259c05
commit 52c1fadb32

110
.vimrc
View file

@ -1156,54 +1156,56 @@ filetype plugin indent on
" }}}1 " }}}1
"----------------------------------------------------------------------- if v:version >= 703
" Default Fuf shortcuts Dvorakized from :help fuf-vimrc-example "-----------------------------------------------------------------------
"----------------------------------------------------------------------- " Default Fuf shortcuts Dvorakized from :help fuf-vimrc-example
" {{{1 "-----------------------------------------------------------------------
"let g:fuf_modesDisable = [] " {{{1
let g:fuf_modesDisable = ['mrucmd'] "let g:fuf_modesDisable = []
"let g:fuf_mrufile_maxItem = 400 let g:fuf_modesDisable = ['mrucmd']
"let g:fuf_mrucmd_maxItem = 400 "let g:fuf_mrufile_maxItem = 400
"nmap <silent> sh :FufBuffer<CR> "let g:fuf_mrucmd_maxItem = 400
nmap <silent> st :FufFileWithCurrentBufferDir<CR> "nmap <silent> sh :FufBuffer<CR>
nmap <silent> sT :FufFileWithFullCwd<CR> nmap <silent> st :FufFileWithCurrentBufferDir<CR>
nmap <silent> s<C-t> :FufFile<CR> nmap <silent> sT :FufFileWithFullCwd<CR>
nmap <silent> sn :FufCoverageFileChange<CR> nmap <silent> s<C-t> :FufFile<CR>
nmap <silent> sN :FufCoverageFileChange<CR> nmap <silent> sn :FufCoverageFileChange<CR>
"nmap <silent> s<C-n> :FufCoverageFileRegister<CR> nmap <silent> sN :FufCoverageFileChange<CR>
"nmap <silent> s<C-n> :FufCoverageFileRegister<CR>
nmap <silent> sd :FufDirWithCurrentBufferDir<CR> nmap <silent> sd :FufDirWithCurrentBufferDir<CR>
nmap <silent> sD :FufDirWithFullCwd<CR> nmap <silent> sD :FufDirWithFullCwd<CR>
nmap <silent> s<C-d> :FufDir<CR> nmap <silent> s<C-d> :FufDir<CR>
nmap <silent> sb :FufMruFile<CR> nmap <silent> sb :FufMruFile<CR>
nmap <silent> sB :FufMruFileInCwd<CR> nmap <silent> sB :FufMruFileInCwd<CR>
" nmap <silent> sm :FufMruCmd<CR> " nmap <silent> sm :FufMruCmd<CR>
" nmap <silent> su :FufBookmarkFile<CR> " nmap <silent> su :FufBookmarkFile<CR>
" nmap <silent> s<C-u> :FufBookmarkFileAdd<CR> " nmap <silent> s<C-u> :FufBookmarkFileAdd<CR>
" vmap <silent> s<C-u> :FufBookmarkFileAddAsSelectedText<CR> " vmap <silent> s<C-u> :FufBookmarkFileAddAsSelectedText<CR>
" nmap <silent> si :FufBookmarkDir<CR> " nmap <silent> si :FufBookmarkDir<CR>
" nmap <silent> s<C-i> :FufBookmarkDirAdd<CR> " nmap <silent> s<C-i> :FufBookmarkDirAdd<CR>
"nmap <silent> sy :FufTag<CR> "nmap <silent> sy :FufTag<CR>
"nmap <silent> sY :FufTag!<CR> "nmap <silent> sY :FufTag!<CR>
" nmap <silent> s<C-]> :FufTagWithCursorWord!<CR> " nmap <silent> s<C-]> :FufTagWithCursorWord!<CR>
" nmap <silent> s, :FufBufferTag<CR> " nmap <silent> s, :FufBufferTag<CR>
" nmap <silent> s< :FufBufferTag!<CR> " nmap <silent> s< :FufBufferTag!<CR>
" vmap <silent> s, :FufBufferTagWithSelectedText!<CR> " vmap <silent> s, :FufBufferTagWithSelectedText!<CR>
" vmap <silent> s< :FufBufferTagWithSelectedText<CR> " vmap <silent> s< :FufBufferTagWithSelectedText<CR>
" nmap <silent> s} :FufBufferTagWithCursorWord!<CR> " nmap <silent> s} :FufBufferTagWithCursorWord!<CR>
" nmap <silent> s. :FufBufferTagAll<CR> " nmap <silent> s. :FufBufferTagAll<CR>
" nmap <silent> s> :FufBufferTagAll!<CR> " nmap <silent> s> :FufBufferTagAll!<CR>
" vmap <silent> s. :FufBufferTagAllWithSelectedText!<CR> " vmap <silent> s. :FufBufferTagAllWithSelectedText!<CR>
" vmap <silent> s> :FufBufferTagAllWithSelectedText<CR> " vmap <silent> s> :FufBufferTagAllWithSelectedText<CR>
" nmap <silent> s] :FufBufferTagAllWithCursorWord!<CR> " nmap <silent> s] :FufBufferTagAllWithCursorWord!<CR>
" nmap <silent> sg :FufTaggedFile<CR> " nmap <silent> sg :FufTaggedFile<CR>
" nmap <silent> sG :FufTaggedFile!<CR> " nmap <silent> sG :FufTaggedFile!<CR>
" nmap <silent> so :FufJumpList<CR> " nmap <silent> so :FufJumpList<CR>
" nmap <silent> sp :FufChangeList<CR> " nmap <silent> sp :FufChangeList<CR>
" nmap <silent> sq :FufQuickfix<CR> " nmap <silent> sq :FufQuickfix<CR>
"nmap <silent> sf :FufLine<CR> "nmap <silent> sf :FufLine<CR>
"nmap <silent> sx :FufHelp<CR> "nmap <silent> sx :FufHelp<CR>
" nmap <silent> se :FufEditDataFile<CR> " nmap <silent> se :FufEditDataFile<CR>
" nmap <silent> sr :FufRenewCache<CR> " nmap <silent> sr :FufRenewCache<CR>
endif
" }}}1 " }}}1
@ -1270,14 +1272,16 @@ noremap <Leader>rg :color relaxedgreen<CR>
noremap <Leader>ip :color inkpot<CR> noremap <Leader>ip :color inkpot<CR>
noremap <Leader>ir :color ir_black<CR> noremap <Leader>ir :color ir_black<CR>
noremap <Leader>mv :color macvim<CR>:set background=light<CR> noremap <Leader>mv :color macvim<CR>:set background=light<CR>
noremap <Leader>f :FufFileWithCurrentBufferDir<CR> if v:version >= 703
noremap <Leader>F :FufFile<CR> noremap <Leader>f :FufFileWithCurrentBufferDir<CR>
noremap <Leader>v :FufCoverageFile<CR> noremap <Leader>F :FufFile<CR>
noremap <Leader>b :FufBuffer<CR> noremap <Leader>v :FufCoverageFile<CR>
noremap <Leader>c :FufDirWithFullCwd<CR> noremap <Leader>b :FufBuffer<CR>
noremap <Leader>u :FufRenewCache<CR> noremap <Leader>c :FufDirWithFullCwd<CR>
noremap <Leader>w :bdelete<CR> noremap <Leader>u :FufRenewCache<CR>
noremap <F1> :FufHelp<CR> noremap <Leader>w :bdelete<CR>
noremap <F1> :FufHelp<CR>
endif
noremap <F12> <Esc>:syntax sync fromstart<CR> noremap <F12> <Esc>:syntax sync fromstart<CR>
inoremap <F12> <C-o>:syntax sync fromstart<CR> inoremap <F12> <C-o>:syntax sync fromstart<CR>
syntax sync minlines=200 syntax sync minlines=200