Rick R wrote:
I've been struggling trying to get code folding working within HTML
files in vim and macVim. All my other IDES (and various editors -
textMate/komodoEdit) support it so I'd like to have it working in vim
and MacVim.
Some on the vim list have been kind enough to try to help for a bit,
but understandably they gave up.
For someone that does have things working, is there any chance they
could zip up their .vim dir and provide their .vimrc as well and I can
start working with that to see where I've done things wrong? (I've
been messing with both using foldmethod syntax and indent and having
no luck. Installed xml plugin as well.)
I've been trying all kinds of things to get things working. I've also
put all my files out on github if someone wanted to take a look
https://github.com/rickcr/vim
I think the situation is:
* syntax/html.vim does not support syntax folding.
* xml does support folding, and its similar to html.
* Try editing an html file, and:
:let g:xml_syntax_folding= 1
:set ft=xml
As was pointed out, html is rather looser than xml and so its regions
may not be well specified -- and then xml's folding (and probably other
things) will then fail.
As an alternative, use :set fdm=marker
and put <!-- {{{1 --> where you want folds.
Regards,
Chip Campbell
--
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php