Monday, April 2, 2012

Folds

Hello.

Often doing programming I come across the case that I would like to
have folds for Class and/or API code. e.g;

[code]
// Javascript
function MyClass() {
}

/**
* Some API Docs
*/
MyClass.prototype.someMethod = function() {
};

...
[/code]

What I usually do here is create a manual fold for each API doc and
method. But this is a lot of manual work with e.g. "V$%jzf" to fold a
method. I'd like to do this automatically for the whole document with
one <leader> map. Is this possible?

--
You received this message from the "vim_use" 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

No comments: