Aaron
Aaron

Reputation: 1324

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? Thank you very much.

Upvotes: 1

Views: 254

Answers (2)

johnsyweb
johnsyweb

Reputation: 141998

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:

Upvotes: 2

romainl
romainl

Reputation: 196926

Vim doesn't have this feature out of the box, you need to install a plugin called TagList or a more recent alternative called TagBar.

Upvotes: 3

Related Questions