sponsor Vim development Vim logo Vim Book Ad

foldout : Outline-based folding with syntax highlighting.

 script karma  Rating 0/0, Downloaded by 547  Comments, bugs, improvements  Vim wiki

created by
Matt Superdock
 
script type
utility
 
description
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.
 
install details
Use your preferred installation method; for example, with vim-plug, use:

Plug 'msuperdock/vim-foldout'

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().
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-foldout.zip 3.0 2020-11-14 7.0 Matt Superdock See github repository for changelog:
https://github.com/msuperdock/vim-foldout
vim-foldout.zip 2.0 2020-07-30 7.0 Matt Superdock See github repository for changelog:
https://github.com/msuperdock/vim-foldout
vim-foldout.zip 1.0 2019-03-08 7.0 Matt Superdock Initial upload
ip used for rating: 35.175.112.61

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github