Script Roundup: rsi.vim, Tablify

Send in your Vim scripts for review through our contact form or @vimnews.

rsi.vim

rsi.vim (GitHub: tpope / vim-rsi, License: Vim) by Tim Pope adds Readline/Emacs-style bindings to Vim. It does sometimes feel like everything apart from Vim has the same shortcuts, and so Tim has made a plugin that brings them to Vim without overriding commonly used existing bindings.

The Readline mappings work in the Insert and Command-line modes. You can review the mappings here: rsi.vim.

Tablify

Tablify (GitHub: Stormherz / tablify) by Vladimir Shvets turns structured data into tables. Pressing \tt turns a selection into a table with left-aligned text. The example from the readme is as follows:

Artist | Song | Album | Year
Tool | Useful idiot | ├ćnima | 1996
Pantera | Cemetery Gates | Cowboys from Hell | 1990
Ozzy Osbourne | Let Me Hear You Scream | Scream | 2010

Becomes:

+---------------+------------------------+-------------------+------+
| Artist        | Song                   | Album             | Year |
+---------------+------------------------+-------------------+------+
| Tool          | Useful idiot           | ├ćnima             | 1996 |
+---------------+------------------------+-------------------+------+
| Pantera       | Cemetery Gates         | Cowboys from Hell | 1990 |
+---------------+------------------------+-------------------+------+
| Ozzy Osbourne | Let Me Hear You Scream | Scream            | 2010 |
+---------------+------------------------+-------------------+------+

Selecting the table and pressing \tu will return the table to the original text. There's also special handling for headers to make them look visually distinct from other rows.

blog comments powered by Disqus