From 70a1db7589b633cef0647f850350ba3417b08498 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 28 Jan 2013 21:46:16 -0600 Subject: [PATCH] Enable folding for XML files --- ftplugin/xml.vim | 3 +++ plugin/00-dustin.vim | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ftplugin/xml.vim b/ftplugin/xml.vim index c78003b..792d0f3 100644 --- a/ftplugin/xml.vim +++ b/ftplugin/xml.vim @@ -3,3 +3,6 @@ setlocal softtabstop=2 setlocal shiftwidth=2 setlocal expandtab setlocal autoindent +set foldlevelstart=99 +let g:xml_syntax_folding=1 +setlocal foldmethod=syntax diff --git a/plugin/00-dustin.vim b/plugin/00-dustin.vim index fc70d26..d9bf50b 100644 --- a/plugin/00-dustin.vim +++ b/plugin/00-dustin.vim @@ -61,3 +61,6 @@ elseif has('unix') " Nice font and size (escape spaces) (GUI only) set guifont=Luxi\ Mono\ 9 endif + +" Open all folds by default +set foldlevelstart=99