]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Add CtrlP settings.
authorSimon Ruderich <simon@ruderich.org>
Sat, 20 Oct 2012 10:51:47 +0000 (12:51 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 20 Oct 2012 10:51:47 +0000 (12:51 +0200)
setup.sh
vimrc

index dcaad16f5d292a575e906000ce8341883e265f01..f20827f66316e5daf2d18eea67df92b406458276 100755 (executable)
--- 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 26e7463c1499e9773d4b15bf130c082cd7591ccf..cddb965d78d03c1f5e2a067265edd788f2869e60 100644 (file)
--- 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