Wikia

Vim Tips Wiki

Watchlist Recent changes

Using Vim as an outline processor

Tip 74 Printable Monobook Previous Next

created June 5, 2001 · complexity intermediate · author Steve Litt · version 6.0


With the addition of folding, Vim6 can function as a high performance outline processor. Simply :set ai and in insert mode use backspace to promote and tab to demote headlines.

In command mode, << promotes (n<< to promote multiple lines), and >> demotes. Also, highlight several headlines and < or > to promote or demote.

:set foldmethod=indent and then your z commands can expand or collapse headline trees, filewide or by the tree.

VimOutlinerEdit

The VimOutliner GPL distro contains the scripts and configs to easily configure Vim6 as an outliner, including scripts to create tag files enabling interoutline hyperlinking.

The VimOutliner project is at vimoutliner.org.

CommentsEdit

If you're interested in outlining in Vim, you should also check out my TVO (The Vim Outliner) plugin.


Pages on Vim Tips Wiki

Add a Page
1,586pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
71photos on this wiki
See more >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki