[英]How to get outline mode when read bash shell using vim
I am reading a long bash shell script using vim, and I want to read all function in outline mode, what can I do in vim? 我正在使用vim阅读一个长长的bash shell脚本,并且想在大纲模式下阅读所有功能,在vim中我能做什么? Thank you very much. 非常感谢你。
It sounds like you wish to fold all functions to make the code easier to browse. 听起来好像您希望折叠所有功能以使代码更易于浏览。
:set foldmethod=syntax
:set foldlevel=1
For more information see: 有关更多信息,请参见:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.