foldout : Outline-based folding with syntax highlighting.
| script karma
Downloaded by 417
Comments, bugs, improvements
script versions (upload new version)
|foldout is an outline-based folding plugin for vim & neovim. Its unique feature is that folds are determined by Markdown-style headings within comments, and these headings are automatically highlighted. foldout also provides a suite of functions for manipulating and navigating between headings.
foldout uses vim's commentstring option to compute default heading patterns. As a result, if you're using a filetype-specific plugin that sets commentstring, no further configuration is necessary. Just type the comment prefix, then a string of heading symbols (by default, #), and foldout will recognize a heading.
See https://github.com/msuperdock/vim-foldout for more.
|Use your preferred installation method; for example, with vim-plug, use:
If your .vimrc uses mkview or loadview to save and restore view data, remove these commands and set g:foldout_save. (The mkview and loadview commands need to be called in certain sequence with foldout commands, and foldout handles this for you.) For example:
let g:foldout_save = 1
By default, foldout is automatically enabled in all buffers whose filenames contain a dot (see option g:foldout_files to customize this), and can be manually enabled & disabled using :call foldout#enable(), :call foldout#disable(), and call foldout#toggle().
Click on the package to download.
ip used for rating: 22.214.171.124