From b488bd7dbbf1732237c6e696521f7ae8a50b9e8f Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Thu, 18 Feb 2021 10:39:40 +0000 Subject: [PATCH] Make ctrlp ignore gitignored files --- states/vim/files/vimrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/states/vim/files/vimrc b/states/vim/files/vimrc index 2cb9aa8..c7b1e41 100644 --- a/states/vim/files/vimrc +++ b/states/vim/files/vimrc @@ -22,7 +22,7 @@ Plugin 'vim-airline/vim-airline-themes' Plugin 'airblade/vim-gitgutter' Plugin 'tpope/vim-fugitive' Plugin 'liskin/vim-fubitive' -Plugin 'kien/ctrlp.vim' +Plugin 'ctrlpvim/ctrlp.vim' Plugin 'editorconfig/editorconfig-vim' Plugin 'LaTeX-Box-Team/LaTeX-Box' Plugin 'hynek/vim-python-pep8-indent' @@ -92,6 +92,9 @@ set wildignore+=.git,.hg.svn " CtrlP let g:ctrlp_working_path_mode = 'r' +" Ignore git ignored files +let g:ctrlp_user_command = 'git ls-files -co --exclude-standard $(git rev-parse --show-toplevel 2> /dev/null) 2> /dev/null || find . -type f' + " Editorconfig let g:EditorConfig_exclude_patterns = ['fugitive://.*'] -- 2.46.2