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.
This commit is contained in:
Fernando Schauenburg 2020-01-30 19:20:58 +01:00
parent e0fb9191e5
commit 773c2142b2

View file

@ -97,7 +97,6 @@ let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc"
let g:ctrlp_match_window = 'bottom,order:ttb' let g:ctrlp_match_window = 'bottom,order:ttb'
let g:ctrlp_switch_buffer = 0 " open files in new buffer 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:ctrlp_show_hidden = 1 " show hidden files
let g:rainbow#pairs = [['(',')'], ['[',']'], ['{','}']] let g:rainbow#pairs = [['(',')'], ['[',']'], ['{','}']]