Allow folding code with vim
bioinfornatics
bioinfornatics at fedoraproject.org
Sat Jun 23 09:40:14 PDT 2012
hi,
with vim you can fold unfold command to do this you need to ad to d.vim
these lines
" Folding
syn region dFold start="{" end="}" transparent fold
syn region dOnelineCondition start="\<if\>\|\<else\>\|\<else\s\+if\>"
end=";" contains=ALL containedin=ALL transparent fold
syn region foldDdoc1 start="/\*\*" end="\*/" keepend transparent fold
syn region foldDdoc2 start="/++" end="+/" keepend transparent fold
and into /.vimrc add
set foldmethod=syntax
vim folding in
- French:
http://qanuq.com/index.php?post/2009/04/13/Utiliser-les-replis-%
28folding%29-de-Vim
- English: http://vim.wikia.com/wiki/Folding
More information about the Digitalmars-d
mailing list