3 ms·
How to use folds in vim
- makecheck 17y agoThis is a really useful article. Though I've found it's easier to open folds by moving the cursor, e.g. right-arrow while on a fold line, than futzing with "zo".
- adimit 17y agoNeat. I'm addicted to vim partly because of its great and very flexible folds. For example, you can completely rewrite the way folds look. I like my folded code to look like its first line would normally look, without any dashes, preserving indentation. So I just rewrote the function (here's a blog post about it: http://a-dimit.blogspot.com/2008/07/folding-in-vim.html http://a-dimit.blogspot.com/2008/07/folding-in-vim.html) It really rocks :-)