Mercurial > dotfiles
diff vim/vimrc @ 193:ae53d68033d9
Enable fugitive and some CtrlP extensions, include a new one of my own.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 23 Jul 2014 16:57:59 -0700 |
parents | 896acf280e7a |
children | 4d34bf15a478 |
line wrap: on
line diff
--- a/vim/vimrc Wed Jul 23 16:57:10 2014 -0700 +++ b/vim/vimrc Wed Jul 23 16:57:59 2014 -0700 @@ -38,7 +38,6 @@ call add(g:pathogen_disabled, 'vimroom') call add(g:pathogen_disabled, 'minibufexpl') call add(g:pathogen_disabled, 'ragtag') -call add(g:pathogen_disabled, 'fugitive') " Load pathogen. call pathogen#infect() @@ -126,7 +125,7 @@ " Better command-line completion, but don't show some " stuff we don't care about. set wildmenu -set wildignore+=.DS_Store,Thumbs.db,*.so,*.dll,*.exe,*.pyc,*.pyo +set wildignore+=.DS_Store,Thumbs.db,*.so,*.dll,*.exe,*.lib,*.pdb,*.pyc,*.pyo " Always display the tab-page line. set showtabline=2 @@ -229,6 +228,12 @@ " Make Ctrl-P cache stuff in our temp directory. let g:ctrlp_cache_dir = s:vim_home.'/cache' +" Enable some cool extensions. +let g:ctrlp_extensions = ['tag', 'buffertag', 'quickfix', 'mixed'] + +" Initialize other custom extensions. +call ctrlpext#autoignore#init() + " }}} " Syntastic {{{ @@ -371,7 +376,9 @@ " Ctrl-P mappings. nnoremap <silent> <C-p> :CtrlP<cr> nnoremap <silent> <C-o> :CtrlPBuffer<cr> -nnoremap <silent> <C-i> :CtrlPTag<cr> +nnoremap <silent> <C-i> :CtrlPBufTag<cr> +nnoremap <silent> <C-u> :CtrlPTag<cr> +nnoremap <silent> <C-y> :CtrlPQuickfix<cr> nnoremap <silent> <Tab> :CtrlPMRUFiles<cr> " Switch between FR and US keyboard layouts.