]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Enable folding for Vim and XML.
authorSimon Ruderich <simon@ruderich.org>
Sat, 14 Jan 2012 20:31:43 +0000 (21:31 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sat, 14 Jan 2012 20:31:43 +0000 (21:31 +0100)
vimrc

diff --git a/vimrc b/vimrc
index 3d7549816ecfc197fdbccb1033cd28ad3448d9b3..75283da711ca796f02b4ee243951c7b70afb1dee 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -449,6 +449,10 @@ if has('syntax')
     let g:perl_fold_blocks = 1
     let g:perl_nofold_packages = 1
     let g:perl_include_pod = 1 " syntax coloring for PODs
+    " Vim, enable folding for autogroups (a) and functions (f).
+    let g:vimsyn_folding = "af"
+    " XML.
+    let g:xml_syntax_folding = 1
 endif