From ae17459c630eb4f0dbcfa1158f777aeb5f298288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 23 Jun 2020 13:21:11 +0200 Subject: vimrc: add CtrlP --- vimrc | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 l :bnext nnoremap h :bprev nnoremap :buffers:buffer +" 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// -- cgit v1.2.3