aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2020-06-23 13:21:11 +0200
committerKarel Kočí <karel.koci@nic.cz>2020-06-23 13:21:42 +0200
commitae17459c630eb4f0dbcfa1158f777aeb5f298288 (patch)
tree9dce43453d9a8c97e931212e2b2fceeac6e9b634 /vimrc
parent7356732083e276b61db600559b045f50c45d29de (diff)
downloadmyconfigs-ae17459c630eb4f0dbcfa1158f777aeb5f298288.tar.gz
myconfigs-ae17459c630eb4f0dbcfa1158f777aeb5f298288.tar.bz2
myconfigs-ae17459c630eb4f0dbcfa1158f777aeb5f298288.zip
vimrc: add CtrlP
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 1078432..550b0bf 100644
--- a/vimrc
+++ b/vimrc
@@ -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//