How to fold code in Vim

Updated post here: https://codeyarns.github.io/tech/2014-09-02-how-to-fold-code-in-vim.html

2 thoughts on “How to fold code in Vim

    1. Thanks for sharing that. There seems to be a bug. With the set nofoldenable option, za seems to toggle all folds open and close. That is not the effect I wanted.

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.