How to make ctrlp search only ~/Documents directory?

64 Views Asked by At

ctrlp searches my home directory. Is there a line I can put in my vimrc so that ctrlp only searches my ~/Documents directory by default?

1

There are 1 best solutions below

0
On BEST ANSWER

This in my vimrc did the trick:

" set cwd so Ctrl-P starts searches from Documents when Vim opens
cd /home/user_name/Documents/