Advertisement
mindthump

Vim Fold between blank lines

Jul 14th, 2020
2,566
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.11 KB | None | 0 0
  1. " From vim help fold):
  2.  
  3. :se fdm=expr
  4. :set foldexpr=getline(v:lnum)=~'^\\s*$'&&getline(v:lnum+1)=~'\\S'?'<1':1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement