Skip to content

Instantly share code, notes, and snippets.

@lxneng
Created May 9, 2016 02:38
Show Gist options
  • Save lxneng/b437ff80ab327dfacc4f5366d7ddd4c0 to your computer and use it in GitHub Desktop.
Save lxneng/b437ff80ab327dfacc4f5366d7ddd4c0 to your computer and use it in GitHub Desktop.
How can you fold and unfold Python code in Vim?

set foldmethod=indent

use zo and zc to fold and unfold in normal mode

use zR and zM to fold and unfold all folds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment