Vim Tips Wiki
(Move categories to tip template)
(→‎VimOutliner: use script template inline)
 
(4 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
|previous=73
 
|previous=73
 
|next=75
 
|next=75
|created=June 5, 2001
+
|created=2001
 
|complexity=intermediate
 
|complexity=intermediate
 
|author=Steve Litt
 
|author=Steve Litt
Line 14: Line 14:
 
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.
 
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.
+
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.
+
<code>:set foldmethod=indent</code> and then your z commands can expand or collapse headline trees, filewide or by the tree.
   
  +
==VimOutliner==
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 {{script|id=3515|text=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.
 
   
 
==Comments==
 
==Comments==
If you're interested in outlining in Vim, you should also check out my TVO {{script|id=517}}.
+
If you're interested in outlining in Vim, you should also check out my {{script|id=517|text=TVO (The Vim Outliner)}} plugin.
   
 
----
 
----

Latest revision as of 19:43, 17 February 2014

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.

VimOutliner[]

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.

Comments[]

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