How can one make vim's fold function - when using foldmethod=syntax - also hide one newline after each function, if-else and struct (using Go).
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
Here's how to do it for C:
becomes
Here, the first I do not have a syntax file for Go here (as far as I can tell), but it should work in a similar way. Note: the more flexible way would be to create a new file at |
|||
|
|