From: Simon Ruderich Date: Sat, 20 Oct 2012 10:51:47 +0000 (+0200) Subject: vimrc: Add CtrlP settings. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=faa0dfa5d35fc237b1193399f79f82c0980fb073;p=config%2Fdotfiles.git vimrc: Add CtrlP settings. --- diff --git a/setup.sh b/setup.sh index dcaad16..f20827f 100755 --- a/setup.sh +++ b/setup.sh @@ -20,6 +20,9 @@ . ../lib.sh +# Create local directories. +mkdir -p vim/cache + # Link setup. link vim ~/.vim link vimrc ~/.vimrc diff --git a/vimrc b/vimrc index 26e7463..cddb965 100644 --- a/vimrc +++ b/vimrc @@ -788,6 +788,16 @@ if has('eval') let g:xptemplate_highlight = 'current' endif +" CtrlP settings. + " Don't manage the working directory (the default setting is too slow for + " me). + let g:ctrlp_working_path_mode = 0 + " Path to cache directory. I prefer to keep generated files as local as + " possible. + let g:ctrlp_cache_dir = $HOME . '/.vim/cache/ctrlp' + " Permanent cache, cleared by a crontab entry. + let g:ctrlp_clear_cache_on_exit = 0 + " AUTO COMMANDS