Ben Vitale
Ben Vitale

Reputation: 1794

How do I enable the Vim folding commands?

Vim 8. I have installed the SimpylFold plugin for Python folding. It is folding the code correctly, but these commands don't work in Normal mode:

:zo
:zc
:zR

I get the message "Not an editor command".

If I check :set foldmethod? it shows expr. What am I missing?

Upvotes: 0

Views: 675

Answers (1)

Ben Vitale
Ben Vitale

Reputation: 1794

The answer is that these shortcuts are entered directly in Normal mode and not into the command line. So just zo, zc, zR. Similar to x for deleting a character, u for undo, etc.

Upvotes: 3

Related Questions