Fold function in vim

前端 未结 5 1589
無奈伤痛
無奈伤痛 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:35

    :set foldmethod=syntax
    

    should fold all functions and other blocks automatically, if you have syntax file for your language.

提交回复
热议问题