From 6b5a55abfaa4022fe30de101a3af5698c7c4a35e Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Wed, 30 Aug 2017 19:05:50 -0500 Subject: [PATCH] .vimrc: Use ctrlp_user_command to ignore files not tracked in VCS --- .vimrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.vimrc b/.vimrc index 712b07b..cf5ab4b 100644 --- a/.vimrc +++ b/.vimrc @@ -314,6 +314,7 @@ let NERDTreeShowHidden=1 " show dotfiles by default let g:ctrlp_map = '' let g:ctrlp_show_hidden = 1 let g:ctrlp_cache_dir = $HOME.'/.vim/.cache/ctrlp' +let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files . -co --exclude-standard', 'find %s -type f'] " --------------------------------------------------------------------------- " Auto Commands / File Types -- 2.45.2