Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. 6. Folding/Outline *vimwiki-folding*
  2.  
  3. Vimwiki can fold or outline sections using headers and preformatted blocks.
  4. Alternatively, one can fold list subitems instead.
  5.  
  6. Example for list folding:
  7. = My current task =
  8. * [ ] Do stuff 1
  9. * [ ] Do substuff 1.1
  10. * [ ] Do substuff 1.2
  11. * [ ] Do substuff 1.2.1
  12. * [ ] Do substuff 1.2.2
  13. * [ ] Do substuff 1.3
  14. * [ ] Do stuff 2
  15. * [ ] Do stuff 3
  16.  
  17. Hit |zM| :
  18. = My current task = [8] --------------------------------------~
  19.  
  20. Hit |zr| :
  21. = My current task =~
  22. * [ ] Do stuff 1 [5] --------------------------------------~
  23. * [ ] Do stuff 2~
  24. * [ ] Do stuff 3~
  25.  
  26. Hit |zr| one more time:
  27. = My current task =~
  28. * [ ] Do stuff 1~
  29. * [ ] Do substuff 1.1~
  30. * [ ] Do substuff 1.2 [2] -------------------------------~
  31. * [ ] Do substuff 1.3~
  32. * [ ] Do stuff 2~
  33. * [ ] Do stuff 3~
  34.  
  35. NOTE:If you use the default vimwiki syntax, folding on list items will work
  36. properly only if all of them are indented using current |shiftwidth|.
  37. For MediaWiki, * or # should be in the first column.
  38.  
  39. To turn folding on/off check |g:vimwiki_folding|.
  40.  
  41. *g:vimwiki_folding*
  42.  
  43. Enable/disable vimwiki's folding (outline) functionality. Folding in vimwiki
  44. can uses either the 'expr' or the 'syntax' |foldmethod| of Vim.
  45.  
  46. Value Description~
  47. '' Disable folding.
  48. 'expr' Folding based on expression (folds sections and code blocks).
  49. 'syntax' Folding based on syntax (folds sections; slower than 'expr').
  50. 'list' Folding based on expression (folds list subitems; much slower).
  51.  
  52. Default: ''
  53.  
  54. Limitations:
  55. - Opening very large files may be slow when folding is enabled.
  56. - 'list' folding is particularly slow with larger files.
  57. - 'list' is intended to work with lists nicely indented with 'shiftwidth'.
  58. - 'syntax' is only available for the default syntax so far.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement