vim中的折叠功能

前端之家收集整理的这篇文章主要介绍了vim中的折叠功能前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
有什么方法或工具来折叠vim中的功能,如Visual Studio或Eclipse?

最好的祝福,

  1. Vim folding commands
  2. ---------------------------------
  3. zf#j creates a fold from the cursor down # lines.
  4. zf/ string creates a fold from the cursor to string .
  5. zj moves the cursor to the next fold.
  6. zk moves the cursor to the prevIoUs fold.
  7. za toggle a fold at the cursor.
  8. zo opens a fold at the cursor.
  9. zO opens all folds at the cursor.
  10. zc closes a fold under cursor.
  11. zm increases the foldlevel by one.
  12. zM closes all open folds.
  13. zr decreases the foldlevel by one.
  14. zR decreases the foldlevel to zero -- all folds will be open.
  15. zd deletes the fold at the cursor.
  16. zE deletes all folds.
  17. [z move to start of open fold.
  18. ]z move to end of open fold.

资料来源:vim docs

猜你在找的Bash相关文章