gpt4 book ai didi

vim - 如何在 vim 中折叠错误检查?

转载 作者:IT王子 更新时间:2023-10-29 02:24:57 25 4
gpt4 key购买 nike

在我的代码中我有很多这样的检查:

if err != nil {
// foo
}

如何在vim中轻松折叠它们?

最佳答案

这样就可以了 :g/\s*if err/normal jva{zf

关于vim - 如何在 vim 中折叠错误检查?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28428807/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com