On Monday, January 28, 2013 4:28:21 PM UTC-6, Paul wrote: > 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).
There is the 'foldminlines' option. foldmethod=indent cannot show the context you desire for closed folds, but you could make your own function for foldmethod=expr. -- -- 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 and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
