Skip to content

Instantly share code, notes, and snippets.

@jfialkoff
Last active August 19, 2018 01:22
Show Gist options
  • Save jfialkoff/c9f966e4294c068b3e38ded27213d689 to your computer and use it in GitHub Desktop.
Save jfialkoff/c9f966e4294c068b3e38ded27213d689 to your computer and use it in GitHub Desktop.

Folding

  • zj moves the cursor to the next fold.
  • zk moves the cursor to the previous fold.
  • zo opens a fold at the cursor.
  • zO opens all folds at the cursor.
  • zm increases the foldlevel by one.
  • zM closes all open folds.
  • zr decreases the foldlevel by one.
  • zR decreases the foldlevel to zero -- all folds will be open.
  • zd deletes the fold at the cursor.
  • zE deletes all folds.
  • [z move to start of open fold.
  • ]z move to end of open fold.

Navigation

  • Ctrl-O jumps back to previous location
  • Ctrl-I jumps forward
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment