简体   繁体   English

使用vim读取bash shell时如何获取大纲模式

[英]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. 非常感谢你。

Vim没有开箱即用的功能,您需要安装一个名为TagList的插件或一个较新的替代品TagBar

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.

相关问题 在bash shell中使用cp命令时,如何获取已复制文件的列表? - how to get the already copied files' list when using cp command in the bash shell? 当 bash 不可用时,如何进入 Docker 容器的 shell? - How to get into Docker container's shell when bash is not available? 如何在bash shell中使用节读取配置文件 - How to read config files with section in bash shell 在只读模式下使用VIM作为cscope中的查看器 - Using VIM in read-only mode as the viewer in cscope 用* shell bash读取文件名 - Read filename with * shell bash 在 FTP 命令模式下,使用 shell 脚本时如何重定向命令行和结果,使用这里文档让 ftp 命令读取标准输入 - In FTP command mode, how do I redirect command line and the result when using shell script using here document to let ftp command read stdin 当使用源(相同的shell)或bash(子shell)调用脚本时,如何从脚本中读取当前文件夹? - How to read the current folder from a script when it's called with source (same shell) or bash (subshell)? 如何使用 bash shell 脚本读取文件中的特定单词并存储在 arrays - how to read after a specific word in a file using bash shell scripting and store in arrays 如何使用bash shell脚本读取Linux中的块特殊和字符特殊设备? - How to read from block special and character special devices in Linux using bash shell scripts? 从 Bash shell 脚本中打开 Vim - Open Vim from within a Bash shell script
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM