Fandom

Vim Tips Wiki

Using Vim as an outline processor

1,624pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Tip 74 Printable Monobook Previous Next

created 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.

CommentsEdit

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


Also on Fandom

Random Wiki