pseewald / vim-anyfold

Language agnostic vim plugin for folding and motion based on indentation.
MIT License
268 stars 11 forks source link

How to leave a space at the bottom of each fold #31

Open pianocomposer321 opened 4 years ago

pianocomposer321 commented 4 years ago

image image

Compare the above images. The first is from vscode, the second from vim using anyfold. It's the same code, but there's one obvious difference: the folding. You see, the source code has at least one empty space after every class and function definition. Vscode's folding does the right thing - it leaves the space there. But anyfold gets rid of the space. If I add two empty lines, it gets rid of both of them. This makes my code feel very crowded when it's folded, and as someone who uses folding constantly, this is very annoying.