Making CtrlP an alternative to Fuf on < 703
This commit is contained in:
parent
5f8582acb9
commit
a20de1e07e
1 changed files with 14 additions and 10 deletions
24
.vimrc
24
.vimrc
|
|
@ -1126,15 +1126,6 @@ if has("eval")
|
||||||
endif
|
endif
|
||||||
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 <Leader>p :CtrlPBuffer<CR>
|
|
||||||
noremap <Leader>P :CtrlPCurFile<CR>
|
|
||||||
|
|
||||||
" Vundle
|
" Vundle
|
||||||
filetype off " Off for vundle
|
filetype off " Off for vundle
|
||||||
set rtp+=~/.vim/bundle/vundle
|
set rtp+=~/.vim/bundle/vundle
|
||||||
|
|
@ -1147,7 +1138,7 @@ Bundle 'L9'
|
||||||
Bundle 'ShowMarks'
|
Bundle 'ShowMarks'
|
||||||
Bundle 'Tabular'
|
Bundle 'Tabular'
|
||||||
Bundle 'The-NERD-tree'
|
Bundle 'The-NERD-tree'
|
||||||
Bundle 'ctrlp'
|
Bundle 'ctrlp.vim'
|
||||||
Bundle 'gnupg'
|
Bundle 'gnupg'
|
||||||
Bundle 'tpope/vim-markdown'
|
Bundle 'tpope/vim-markdown'
|
||||||
Bundle 'hunner/vim-puppet'
|
Bundle 'hunner/vim-puppet'
|
||||||
|
|
@ -1162,6 +1153,13 @@ filetype plugin indent on
|
||||||
" see :h vundle for more details or wiki for FAQ
|
" see :h vundle for more details or wiki for FAQ
|
||||||
" NOTE: comments after Bundle command are not allowed..
|
" 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
|
" }}}1
|
||||||
|
|
||||||
if v:version >= 703
|
if v:version >= 703
|
||||||
|
|
@ -1290,6 +1288,12 @@ if v:version >= 703
|
||||||
noremap <Leader>u :FufRenewCache<CR>
|
noremap <Leader>u :FufRenewCache<CR>
|
||||||
noremap <Leader>w :bdelete<CR>
|
noremap <Leader>w :bdelete<CR>
|
||||||
noremap <F1> :FufHelp<CR>
|
noremap <F1> :FufHelp<CR>
|
||||||
|
elseif v:version >= 702
|
||||||
|
noremap <Leader>f :CtrlPCurFile<CR>
|
||||||
|
noremap <Leader>F :CtrlPCurWD<CR>
|
||||||
|
noremap <Leader>v :CtrlPCurWD<CR>
|
||||||
|
noremap <Leader>b :CtrlPBuffer<CR>
|
||||||
|
noremap <Leader>c :CtrlPChange<CR>
|
||||||
endif
|
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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue