In my code I have a lot of such checks:
if err != nil {
// foo
}
How to easily fold them in vim?
In my code I have a lot of such checks:
if err != nil {
// foo
}
How to easily fold them in vim?
This will do the trick :g/\s*if err /normal jva{zf