Thursday, February 16, 2012

Two Fold-Related Questions

Dear all,


I've just configured vim for folds and I have two questions.

The first question is as follows. When I use the opening brace ({} or
closing brace (}) to more to the previous paragraph or the next
paragraph, my folds sometimes automatically open. I suspect this may
be because there are paragraphs in the fold. Is there a way to turn
this automatically opening/closing off? E.g. when the cursor is just
after a closed fold (at fold nesting level X), then I'd like the
opening brace to move the cursor to just before the closed fold (at
fold nesting level X).

The second question has got to do with ``entering'' a fold. Years ago
I used an occam folding editor that let you enter a fold. Basically,
this let you edit the contents of the fold in a fresh screen. You
could only edit what was outside the fold if you left the fold. Is
there an equivalent of this facility in vim? (I read the manual pages
but I may have missed this.)

Final information: I'm using folds with the `marker` option, I don't
use `gvim`, and my `vim` is version 7.3 (2010 Aug 15, compiled Feb 16
2012 14:12:54).

Thanks in advance for your help.

Regards,


Marc van Dongen

--
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: