sponsor Vim development Vim logo Vim Book Ad

foldout : Outline-based folding for any filetype.

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

created by
Matt Superdock
 
script type
utility
 
description
foldout provides an outline structure based on a hierarchy of headings. A
heading is a string like `/* ## Title */`, consisting of an optional prefix
(`/*`) and suffix (`*/`), a string of heading symbols (`#`), and a title
(`Title`). The number of heading symbols determines the heading level. The
default prefix and suffix are computed from `commentstring`, so in a code file,
you can create a heading by typing your language's comment prefix followed by
heading symbols, without any per-language configuration.

foldout provides syntax highlighting of headings, automatic folding based on
the outline structure, and an additional vim mode called navigation mode, which
provides quick navigation of the outline structure.

See https://github.com/msuperdock/vim-foldout for more.
 
install details
Use your preferred installation method; for example, with vim-plug (https://github.com/junegunn/vim-plug), use:

Plug 'msuperdock/vim-foldout'

foldout can save and restore view data; this includes cursor position, open and
closed folds, and anything else provided by vim's `viewoptions` option. To
enable this, remove any calls to `mkview` and `loadview` in your `.vimrc` 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.)
Consider also modifying `viewoptions`, which controls which view data is saved
and restored; for example:

let &viewoptions = 'folds,cursor'
let g:foldout_save = 1

To enable entering navigation mode, bind a key to the special key sequence
`<Plug>FoldoutNavigation`. Use `map` rather than `noremap` so that
`<Plug>FoldoutNavigation` can be further expanded; for example:

map <leader>n <Plug>FoldoutNavigation

foldout is automatically enabled by default in all buffers with non-empty file
names. You can change this using the `g:foldout_files` variable.
 

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 1.0 2019-03-08 7.0 Matt Superdock Initial upload
ip used for rating: 18.234.88.196

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.
   
OSDN.net Logo