VOoM (Vim Outliner of Markups) is a plugin for text editor Vim that turns Vim into a two-pane outliner.
Description and download page: http://www.vim.org/scripts/script.php?script_id=2657
This page is for screenshots.



default outline layout

The default outline layout after the command :Voom [markup]. The outline window (Tree buffer) is on the left.

This screenshot shows VOoM help file, "doc/voom.txt", which is written as an outline. It is a standard Vim help file except that it uses non-default fold markers set from a modeline at the bottom of the file. The command :Voomhelp opens this help file as an outline in a new tabpage.



split windows

In this screenshot the Tree buffer (on the right) and the source buffer are each split in two windows to show different parts on the same outline. VOoM Tree buffers (there is one for each source buffer) can be displayed in any number of different windows and tab pages, just like any other Vim buffer. It is also possible to have an entirely different outline view in another tab page.



moving group of nodes up

This is animated GIF, see full-size image (17 sec, 102 KB).

VOoM can perform all standard outline operations typically found in an outliner program: Insert New Headline, Move nodes Up/Down/Left/Right, Copy/Cut/Paste, Sort in various ways. In addition, outline operations can be applied to a group of sibling nodes in Visual selection.

This animation shows two sibling nodes "AA" and "BB" being moved Up: the two nodes are selected in the Tree buffer using Visual mode and then Ctrl-Up is pressed repeatedly (or ^^, or <LocalLeader>u). Note that the outline operation Move Up is automatically applied to subtrees, that is to top level nodes and all their descendants.



reStructuredText, Markdown, txt2tags, AsciiDoc, Org-mode, wiki, LaTeX, etc.

The command
    :Voom rest
creates the outline from reStructuredText (reST) section titles. This screenshot shows the source for reStructuredText specification available here. All major outline operations are supported and can be used to rearrange document sections. The command line area shows the current node's UNL (Uniform Node Locator) as echoed by the command :Voomunl.

VOoM was originally written to work with start fold markers with level numbers, which is one of Vim's built-in folding methods and is the most versatile outline markup.

VOoM can currently handle a variety of markups, including popular lightweight markup languages. These markups have headlines (also called headings, headers, section headers, titles) and thus support an outline structure. VOoM can work with headlines in the following formats:
  • Start fold markers with level numbers (:Voom). This is the default or "fmr" mode: headlines are lines with {{{1, {{{2, {{{3, etc. Start fold markers are determined by Vim option 'fmr'. There are also variations of this mode: fmr1, fmr2, fmr3.
  • MediaWiki (:Voom wiki).
  • Vimwiki (:Voom vimwiki).
  • DokuWiki (:Voom dokuwiki).
  • Viki/Deplate (:Voom viki).
  • Emacs Org-mode (:Voom org).
  • reStructuredText (:Voom rest).
  • Markdown (:Voom markdown). Standard Markdown. Both Setext-style and Atx-style headers are supported.
  • Pandoc Markdown (:Voom pandoc). This screenshot shows Pandoc README. Headlines inside fenced code blocks are ignored, which makes this mode suitable for MultiMarkdown, GitHub Markdown, Markdown R, etc.
  • txt2tags (:Voom txt2tags). This screenshot shows txt2tags user guide.
  • AsciiDoc (:Voom asciidoc). Both title formats are supported. This screenshot shows AsciiDoc user guide.
  • LaTeX (:Voom latex). This screenshot shows amshelp.tex.
  • .dtx files (:Voom latexDtx). Documented LaTeX sources.
  • HTML heading tags (:Voom html). Single lines only.
  • The Vim Outliner (:Voom thevimoutliner).
  • VimOutliner (:Voom vimoutliner).
  • TaskPaper (:Voom taskpaper).
  • Python code (:Voom python). Like a class browser, but regions between "class" and "def" are also nodes.
  • Paragraphs (:Voom paragraph{Blank|Indent|NoIndent}). Blocks of lines. Handy for sorting paragraphs with :VoomSort.
  • Miscellaneous other formats, see help file.

NOTE: By default, the command ":Voom" is equivalent to ":Voom fmr"—outline is created from lines with {{{1, {{{2, {{{3, etc. The marker is specified by Vim option 'fmr'. To outline another format, an argument specifying the desired markup mode must be provided.
For standard Markdown format:
    :Voom markdown
For Pandoc Markdown:
    :Voom pandoc
For LaTeX file:
    :Voom latex
And so on. There is argument completion: type ":Voom " and press <Tab> or <C-d>.
See also help for g:voom_ft_modes and g:voom_default_mode.




Python Log buffer

The Python Log buffer, __PyLog__, is created by the command :Voomlog. When present, Python's sys.stdout and sys.stderr are appended to it instead of printed on Vim command line.

The __PyLog__ buffer is modeled after the log pane of Leo outlining editor. The Vim tab page in the screenshot emulates the default layout of Leo panes: the tree pane (top left), the log pane (top right), the body pane (below).

Several other VOoM features were inspired by Leo:
  • The :Voomexec command is like Leo's Execute Script command when executed in a node which contains the @others directive. Currently, Vim and Python scripts can be executed this way. (A Python file with code snippets organized via fold markers, plus the command :Voomexec, plus the PyLog buffer is an alternative to running Python's interactive interpreter.)

  • Outline operations Mark/Unmark (when working with fold markers) are modeled after similar Leo commands.

  • VOoM can save which nodes in the Tree are expanded/contracted and which node is the selected node (when working with fold markers). The difference from Leo is that this is done manually via Tree-local commands and mappings (:[range]VoomFoldingSave, :[range]VoomFoldingRestore).



Voomgrep and Voomunl

The command line area shows output of the command :Voomunl.
It is UNL (Uniform Node Locator) of node under the cursor. The term is from Leo UNL.py plugin. An UNL is like a path to the node. It lists headlines of all ancestor nodes.

The Quickfix window shows output of the command :Voomgrep.
It is like :vimgrep followed by :copen, but instead of showing matching lines it shows matching nodes and their UNLs. In this Vim script file, nodes are mostly functions. So, executing
:Voomgrep some_name
produces a list of functions in which "some_name" is used.

The command :Voomgrep can also perform boolean AND/NOT searches and hierarchical searches (tag inheritance).



bookmarks, notes organizer

A two-pane text outliner makes an excellent organizer of bookmarks and various notes.

Vim can be configured to highlight URL links (http://..., ftp://..., file:///...) and to launch them with mouse clicks or other keys. Several Vim plugins show how to do that, e.g., netrw's gx command, utl.vim.

The command :Voomgrep is handy for finding data in a large, database-like outline, especially when there is a tagging system.

Since VOoM is not a "filetype" plugin, it should be compatible with almost any plain text note-taking format.



terminal Vim

VOoM Tree buffer and __PyLog__ buffer in console Vim on Windows. VOoM works with terminal Vim just as well as with GUI Vim. It should even be usable when 'compatible' is set.



Linux

Linux, GUI Vim. Shown are $VIMRUNTIME/autoload/netrw.vim, its outline, the __PyLog__ buffer. Another Linux screenshot is here.

The VOoM plugin is cross-platform. It should work on any system with Python 2 or 3 and vim/gvim compiled with the Python interface.



This website is on GitHub: github.com/vim-voom