]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Don't open folds for block movements.
authorSimon Ruderich <simon@ruderich.org>
Sat, 20 Oct 2012 10:42:20 +0000 (12:42 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 20 Oct 2012 10:42:20 +0000 (12:42 +0200)
vimrc

diff --git a/vimrc b/vimrc
index 3b77e8efcab1cf5c6223455b394e036c2f272693..26e7463c1499e9773d4b15bf130c082cd7591ccf 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.