]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Always open in the current window with CtrlP.
authorSimon Ruderich <simon@ruderich.org>
Sat, 9 Feb 2013 20:17:39 +0000 (21:17 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sat, 9 Feb 2013 20:17:39 +0000 (21:17 +0100)
vimrc

diff --git a/vimrc b/vimrc
index 2f6a20ada65813716b7101570315bda597e4b5d9..8f78345060260b36c373e10efcfa37e80c6b4f99 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -889,6 +889,7 @@ if has('eval')
     " 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'
@@ -896,6 +897,10 @@ if has('eval')
     " cache manually.
     let g:ctrlp_clear_cache_on_exit = 0
 
+    " Don't switch the window if the selected buffer is already open. I want
+    " to open another view on this buffer in most cases.
+    let g:ctrlp_switch_buffer = 0
+
 " FSWitch settings.
     " Defaults don't work well for my projects.
     augroup vimrc