From 773c2142b253bff95e6377754085c8ac48adbcd3 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Thu, 30 Jan 2020 19:20:58 +0100 Subject: [PATCH] Use default behavior for CtrlP working directory The default value is: let g:ctrlp_working_path_mode = 'ra' which means: a - like "c", but only applies when the current working directory outside of CtrlP isn't a direct ancestor of the directory of the current file. r - the nearest ancestor that contains one of these directories or files: .git .hg .svn .bzr _darcs So this makes it more convenient to work within repositories, which is what I mostly do anyway. --- dotfiles/.config/vim/vimrc | 1 - 1 file changed, 1 deletion(-) diff --git a/dotfiles/.config/vim/vimrc b/dotfiles/.config/vim/vimrc index 70c4e53..f957d70 100644 --- a/dotfiles/.config/vim/vimrc +++ b/dotfiles/.config/vim/vimrc @@ -97,7 +97,6 @@ let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" let g:ctrlp_match_window = 'bottom,order:ttb' let g:ctrlp_switch_buffer = 0 " open files in new buffer - let g:ctrlp_working_path_mode = 0 " use the current working directory let g:ctrlp_show_hidden = 1 " show hidden files let g:rainbow#pairs = [['(',')'], ['[',']'], ['{','}']]