sponsor Vim development Vim logo Vim Book Ad

folddigest.vim : Show fold digest tree view.

 script karma  Rating 21/9, Downloaded by 1682  Comments, bugs, improvements  Vim wiki

created by
script type
Required: Vim 6.2

        :call FoldDigest()

    Transform all folds in the current buffer into digest tree form, and
    show it in another buffer.  The buffer is called FOLDDIGEST.  It shows
    not only all fold start positions, but also a tree depended on original
    folds hierarchy.

    In a FOLDDIGEST, you can move around the cursor, and when type <CR> jump
    to fold at under it.  If you enter FOLDDIGEST window from other windows,
    when depended buffer is availabeled, it will be synchronized
    automatically.  If you want to force synchronize, type "r" in a
    FOLDDIGEST buffer.


                string (default "")
        Set string flag which you need.  If you want to use more than two,
        join by comma.

          flexnumwidth  Narrow line number width as possible.
          nofoldclose   don't close folds after ":call FoldDigest()".
          vertical      Use :vsplit for FOLDDIGEST. (default :split)

                number (default 0)
        FOLDDIGEST window size.  When 'folddigest_options' has "vertical"
        flag, this value is interpretted as window height, and doesn't then
        as window width.  If zero was specified height/width become half of
        current window.

        :let folddigest_options = "vertical,flexnumwidth"
        :let folddigest_size = 30
install details
Put the file at one of your plugin directories.
  ex. $HOME/.vim/plugin/
  ex. $HOME\vimfiles\plugin\
  ex. $VIM\vimfiles\plugin\

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
folddigest.vim 1.0.1 2003-08-13 6.0 Taro MURAOKA Fix some bugs, and remove obsoleted code.
ip used for rating:

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.