VimPlugin: vim-table-mode

From wikinotes
Revision as of 22:27, 5 November 2023 by Will (talk | contribs) (→‎Usage)

Markdown/ReStructuredText spreadsheet-like tables supporting cell formulas and alignment.

Documentation

github https://github.com/dhruvasagar/vim-table-mode
:help table-mode https://github.com/dhruvasagar/vim-table-mode/blob/master/doc/table-mode.txt

Usage

<leader>tm  " toggle enable/disable table-mode
<leader>ts  " sort by column under cursor
||          " (at start of table row) creates a table-break
| foo | bar | baz |  " <<- press enter, followed by '||'

" generates:
" ==========
| foo | bar | baz |
|-----+-----+-----+  " <<- tadaa

" following lines will auto-adjust their width
" ============================================
| foo     | bar | baz |
|---------+-----+-----+
| aaaaaaa | bbb | ccc |