]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vimrc
vimrc: Add CtrlP settings.
[config/dotfiles.git] / vimrc
diff --git a/vimrc b/vimrc
index 3b77e8efcab1cf5c6223455b394e036c2f272693..cddb965d78d03c1f5e2a067265edd788f2869e60 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -190,6 +190,8 @@ if has('folding')
     endif
     set foldlevel=99 " no closed folds at default, 'foldenable' would disable
                      " folding which is not what I want
+    " Don't open folds for block movements like '(', '{', '[[', '[{', etc.
+    set foldopen-=block
 endif
 
 " Only check case if the searched word contains a capital character.
@@ -786,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