Tip #399: fold away empty lines
tip karma |
Rating 2/5, Viewed by 418
|
created: |
|
January 13, 2003 2:48 |
|
complexity: |
|
basic |
author: |
|
Thomas |
|
as of Vim: |
|
6.0 |
You can fold sequences of at least two empty lines (may contain blanks) with these settings:
" fold empty lines with white spaces:
syn match MyEmptyLines "\(^[ ^I]*\n\)\+" fold
You probably can substitute '[ ^I]' with '\s'.
If you have set 'foldcolumn' to more than 0 you can just open/close these empty lines block
by clicking the '+' or '-' with the mouse in the folder column.
<<Mapping for quicker access to macros |
Fast scroll mappings (incl. insert mode) >>
Additional Notes
|