From faa0dfa5d35fc237b1193399f79f82c0980fb073 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 20 Oct 2012 12:51:47 +0200 Subject: [PATCH] vimrc: Add CtrlP settings. --- setup.sh | 3 +++ vimrc | 10 ++++++++++ 2 files changed, 13 insertions(+) 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 -- 2.45.2