Tip #74: Using Vim as an outline processor
tip karma |
Rating 53/17, Viewed by 3548
|
created: |
|
June 5, 2001 12:01 |
|
complexity: |
|
intermediate |
author: |
|
Steve Litt |
|
as of Vim: |
|
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.
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 http://www.troubleshooters.com/projects/vimoutliner/index.htm.
Steve (Litt)
[email protected]
<<Using vim as calculator |
Remap CAPSLOCK key in Windows 2000 Professional and NT4.0 >>
Additional Notes
|