Skip to content

Instantly share code, notes, and snippets.

View neilwang0913's full-sized avatar
🚩
Think well! Plan Better! Work Best!

YQ neilwang0913

🚩
Think well! Plan Better! Work Best!
  • United Kingdom
  • 18:29 (UTC -12:00)
View GitHub Profile

via (https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun)

  • zf#j creates a fold from the cursor down # lines.
  • zf/string creates a fold from the cursor to string .
  • 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.