Fold function in vim

前端 未结 5 1586
無奈伤痛
無奈伤痛 2021-01-29 18:21

Is there any way or tools to fold function in vim, like Visual Studio or Eclipse?

5条回答
  •  北海茫月
    2021-01-29 18:38

    yes, it is bound to the 'z' key, e.g. zO opens all folds. see ":help fold" in vim for more information. You can do folding according to very simple rules, like indentation, or according to the code syntax.

提交回复
热议问题