Monday, January 28, 2013

foldmethod=indent: Show preceding & succeeding lines of context

When using folds with foldmethod=indent, is there a way to show a user
specified number of lines before actually folding? For example, if
the user specified context is 2 lines before and after the fold, then
a fold is only created at a particular indentation level if there are
6 or more consecutive lines at a particular identation level or
greater: The 1st 2 lines show, the last 2 lines show, and the middle 2
lines are folded (if there was only 1 line in the middle, there isn't
much point in folding it since the fold itself takes a line).

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group, send email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: