Last Updated: February 25, 2016
·
597
· ciaranarcher

Setting ctrlp search defaults

Using Vim it's important to have a way to quickly search for files by name. The excellent ctrlp plugin offers this by pressing CTRL-D (filename search) and CTRL-R (regex search) before you start typing.

If you always tend to use these settings then you can adjust your .vimrc with the following settings so ctrlp uses them by default:

let g:ctrlp_by_filename = 1
let g:ctrlp_regexp = 1