如何在 vim 中折叠错误检查?
How to fold errors checks in go in vim?
在我的代码中有很多这样的检查:
if err != nil {
// foo
}
如何轻松折叠 vim?
这样就可以了:g/\s*if err /normal jva{zf
在我的代码中有很多这样的检查:
if err != nil {
// foo
}
如何轻松折叠 vim?
这样就可以了:g/\s*if err /normal jva{zf