Wednesday, March 6, 2013

Vim folding, auto fold xml, fold, unfold


To allow folds based on syntax add something like the following to your .vimrc:
set foldmethod=syntax
set foldlevelstart=1

let javaScript_fold=1         " JavaScript
let perl_fold=1               " Perl
let php_folding=1             " PHP
let r_syntax_folding=1        " R
let ruby_fold=1               " Ruby
let sh_fold_enabled=1         " sh
let vimsyn_folding='af'       " Vim script
let xml_syntax_folding=1      " XML

zo -- To open a fold block
zc -- To fold a block
zr -- Fold less
zm -- Fold more

7 comments:

  1. Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. auto response text

    ReplyDelete
  2. There are various auto parts merchants that have some expertise in one brand of auto parts and in the event that you search for VW auto parts you will locate that a considerable number of the strength auto parts individuals do zero in on the VW. Why would that be? appearance protection

    ReplyDelete
  3. I understand this column. I realize You put a many of struggle to found this story. I admire your process. 2020 Keystone RV Fuzion 410

    ReplyDelete
  4. Acknowledges for penmanship such a worthy column, I stumbled beside your blog besides predict a handful advise. I want your tone of manuscript... 2021 Winnebago Micro Minnie 2306BHS

    ReplyDelete
  5. used auto parts This content is simply exciting and creative. I have been deciding on a institutional move and this has helped me with one aspect.

    ReplyDelete
  6. I am very obliged to you that you have shared this important information of Micro Minnie with us. I got some different kinds of knowledge from your webpage, and it is helpful for everyone. Thanks for sharing it once again.

    ReplyDelete