From 52c1fadb32cfbdf25010b3067fa2d1746da5517c Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Wed, 13 Jun 2012 11:01:10 -0700 Subject: [PATCH] Don't set fuf stuff on versions < 703 --- .vimrc | 116 +++++++++++++++++++++++++++++---------------------------- 1 file changed, 60 insertions(+), 56 deletions(-) diff --git a/.vimrc b/.vimrc index 5943881..ddea9fd 100644 --- a/.vimrc +++ b/.vimrc @@ -1156,54 +1156,56 @@ filetype plugin indent on " }}}1 -"----------------------------------------------------------------------- -" Default Fuf shortcuts Dvorakized from :help fuf-vimrc-example -"----------------------------------------------------------------------- -" {{{1 -"let g:fuf_modesDisable = [] -let g:fuf_modesDisable = ['mrucmd'] -"let g:fuf_mrufile_maxItem = 400 -"let g:fuf_mrucmd_maxItem = 400 -"nmap sh :FufBuffer -nmap st :FufFileWithCurrentBufferDir -nmap sT :FufFileWithFullCwd -nmap s :FufFile -nmap sn :FufCoverageFileChange -nmap sN :FufCoverageFileChange -"nmap s :FufCoverageFileRegister - nmap sd :FufDirWithCurrentBufferDir - nmap sD :FufDirWithFullCwd - nmap s :FufDir -nmap sb :FufMruFile -nmap sB :FufMruFileInCwd -" nmap sm :FufMruCmd -" nmap su :FufBookmarkFile -" nmap s :FufBookmarkFileAdd -" vmap s :FufBookmarkFileAddAsSelectedText -" nmap si :FufBookmarkDir -" nmap s :FufBookmarkDirAdd -"nmap sy :FufTag -"nmap sY :FufTag! -" nmap s :FufTagWithCursorWord! -" nmap s, :FufBufferTag -" nmap s< :FufBufferTag! -" vmap s, :FufBufferTagWithSelectedText! -" vmap s< :FufBufferTagWithSelectedText -" nmap s} :FufBufferTagWithCursorWord! -" nmap s. :FufBufferTagAll -" nmap s> :FufBufferTagAll! -" vmap s. :FufBufferTagAllWithSelectedText! -" vmap s> :FufBufferTagAllWithSelectedText -" nmap s] :FufBufferTagAllWithCursorWord! -" nmap sg :FufTaggedFile -" nmap sG :FufTaggedFile! -" nmap so :FufJumpList -" nmap sp :FufChangeList -" nmap sq :FufQuickfix -"nmap sf :FufLine -"nmap sx :FufHelp -" nmap se :FufEditDataFile -" nmap sr :FufRenewCache +if v:version >= 703 + "----------------------------------------------------------------------- + " Default Fuf shortcuts Dvorakized from :help fuf-vimrc-example + "----------------------------------------------------------------------- + " {{{1 + "let g:fuf_modesDisable = [] + let g:fuf_modesDisable = ['mrucmd'] + "let g:fuf_mrufile_maxItem = 400 + "let g:fuf_mrucmd_maxItem = 400 + "nmap sh :FufBuffer + nmap st :FufFileWithCurrentBufferDir + nmap sT :FufFileWithFullCwd + nmap s :FufFile + nmap sn :FufCoverageFileChange + nmap sN :FufCoverageFileChange + "nmap s :FufCoverageFileRegister + nmap sd :FufDirWithCurrentBufferDir + nmap sD :FufDirWithFullCwd + nmap s :FufDir + nmap sb :FufMruFile + nmap sB :FufMruFileInCwd + " nmap sm :FufMruCmd + " nmap su :FufBookmarkFile + " nmap s :FufBookmarkFileAdd + " vmap s :FufBookmarkFileAddAsSelectedText + " nmap si :FufBookmarkDir + " nmap s :FufBookmarkDirAdd + "nmap sy :FufTag + "nmap sY :FufTag! + " nmap s :FufTagWithCursorWord! + " nmap s, :FufBufferTag + " nmap s< :FufBufferTag! + " vmap s, :FufBufferTagWithSelectedText! + " vmap s< :FufBufferTagWithSelectedText + " nmap s} :FufBufferTagWithCursorWord! + " nmap s. :FufBufferTagAll + " nmap s> :FufBufferTagAll! + " vmap s. :FufBufferTagAllWithSelectedText! + " vmap s> :FufBufferTagAllWithSelectedText + " nmap s] :FufBufferTagAllWithCursorWord! + " nmap sg :FufTaggedFile + " nmap sG :FufTaggedFile! + " nmap so :FufJumpList + " nmap sp :FufChangeList + " nmap sq :FufQuickfix + "nmap sf :FufLine + "nmap sx :FufHelp + " nmap se :FufEditDataFile + " nmap sr :FufRenewCache +endif " }}}1 @@ -1270,14 +1272,16 @@ noremap rg :color relaxedgreen noremap ip :color inkpot noremap ir :color ir_black noremap mv :color macvim:set background=light -noremap f :FufFileWithCurrentBufferDir -noremap F :FufFile -noremap v :FufCoverageFile -noremap b :FufBuffer -noremap c :FufDirWithFullCwd -noremap u :FufRenewCache -noremap w :bdelete -noremap :FufHelp +if v:version >= 703 + noremap f :FufFileWithCurrentBufferDir + noremap F :FufFile + noremap v :FufCoverageFile + noremap b :FufBuffer + noremap c :FufDirWithFullCwd + noremap u :FufRenewCache + noremap w :bdelete + noremap :FufHelp +endif noremap :syntax sync fromstart inoremap :syntax sync fromstart syntax sync minlines=200