From a20de1e07ec20626d56da4caec5edbfd1e2d5c10 Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Wed, 30 Jan 2013 09:37:41 -0800 Subject: [PATCH] Making CtrlP an alternative to Fuf on < 703 --- .vimrc | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.vimrc b/.vimrc index 5755199..c735615 100644 --- a/.vimrc +++ b/.vimrc @@ -1126,15 +1126,6 @@ if has("eval") endif endif -" CtrlP -set wildignore+=*/tmp/*,*.so,*.swp,*.zip " Linux/MacOSX -set wildignore+=tmp\*,*.swp,*.zip,*.exe " Windows -set wildignore+=*/.git/*,*/.hg/*,*/.svn/* -let g:ctrlp_working_path_mode = 1 -let g:ctrlp_custom_ignore = '\.git$\|\.hg$\|\.svn$' -noremap p :CtrlPBuffer -noremap P :CtrlPCurFile - " Vundle filetype off " Off for vundle set rtp+=~/.vim/bundle/vundle @@ -1147,7 +1138,7 @@ Bundle 'L9' Bundle 'ShowMarks' Bundle 'Tabular' Bundle 'The-NERD-tree' -Bundle 'ctrlp' +Bundle 'ctrlp.vim' Bundle 'gnupg' Bundle 'tpope/vim-markdown' Bundle 'hunner/vim-puppet' @@ -1162,6 +1153,13 @@ filetype plugin indent on " see :h vundle for more details or wiki for FAQ " NOTE: comments after Bundle command are not allowed.. +" CtrlP +set wildignore+=*/tmp/*,*.so,*.swp,*.zip " Linux/MacOSX +set wildignore+=tmp\*,*.swp,*.zip,*.exe " Windows +set wildignore+=*/.git/*,*/.hg/*,*/.svn/* +let g:ctrlp_working_path_mode = 1 +let g:ctrlp_custom_ignore = '\.git$\|\.hg$\|\.svn$' + " }}}1 if v:version >= 703 @@ -1290,6 +1288,12 @@ if v:version >= 703 noremap u :FufRenewCache noremap w :bdelete noremap :FufHelp +elseif v:version >= 702 + noremap f :CtrlPCurFile + noremap F :CtrlPCurWD + noremap v :CtrlPCurWD + noremap b :CtrlPBuffer + noremap c :CtrlPChange endif noremap :syntax sync fromstart inoremap :syntax sync fromstart