From 41dbbece54fd54c8f3dce513a41b1928a69efb3e Mon Sep 17 00:00:00 2001 From: Orien Vandenbergh Date: Fri, 7 Nov 2014 12:26:52 -0700 Subject: [PATCH] changed syntax highlight settings --- vimrc | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/vimrc b/vimrc index d83e953..5b6f2a8 100644 --- a/vimrc +++ b/vimrc @@ -125,9 +125,20 @@ set smartcase " Don't resize all open windows when I split in a new window set noequalalways -" Configure folding to use markers, and be fully folded on file open -set foldmethod=marker -set foldlevel=0 +" Configure folding to use syntax, override on a filetype basis if desired +set foldmethod=syntax +" Leave top level fold, unfolded on file open, so some context is available +set foldlevel=1 +" Don't create folds deeper than 3 levels, might still need some tweaking. +set foldnestmax=3 + +" Enable syntax based folding for the following filetypes +let javaScript_fold=1 +let perl_fold=1 +let php_folding=1 +let ruby_fold=1 +let sh_fold_enabled=1 +let xml-syntax_folding=1 " - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " Section 5: Keymappings