diff options
author | Karel Kočí <karel.koci@nic.cz> | 2020-06-23 13:21:11 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2020-06-23 13:21:42 +0200 |
commit | ae17459c630eb4f0dbcfa1158f777aeb5f298288 (patch) | |
tree | 9dce43453d9a8c97e931212e2b2fceeac6e9b634 /vimrc | |
parent | 7356732083e276b61db600559b045f50c45d29de (diff) | |
download | myconfigs-ae17459c630eb4f0dbcfa1158f777aeb5f298288.tar.gz myconfigs-ae17459c630eb4f0dbcfa1158f777aeb5f298288.tar.bz2 myconfigs-ae17459c630eb4f0dbcfa1158f777aeb5f298288.zip |
vimrc: add CtrlP
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -41,6 +41,9 @@ Plugin 'tmhedberg/SimpylFold' Plugin 'fedorenchik/qt-support.vim' Plugin 'chr4/nginx.vim' Plugin 'LnL7/vim-nix' +Plugin 'gisphm/vim-gitignore' +" Files navigation +Plugin 'kien/ctrlp.vim' """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" call vundle#end() filetype plugin indent on @@ -125,6 +128,14 @@ nnoremap <C-C>l :bnext<CR> nnoremap <C-C>h :bprev<CR> nnoremap <C-C><C-C> :buffers<CR>:buffer<Space> +" CtrlP +let g:ctrlp_user_command = { +\ 'types': { +\ 1: ['.git', 'git -C %s ls-files . -co --exclude-standard'], +\ }, +\ 'fallback': 'find %s -type f' +\ } + " Directory where *.swp files will be stored " Note that double slash is intensional, it tells vim to build complete path. set directory=$HOME/.cache/vim// |