VimPlugin: vim-table-mode: Difference between revisions
From wikinotes
(Created page with "Markdown/ReStructuredText spreadsheet-like tables supporting cell formulas and alignment. = Documentation = <blockquote> {| class="wikitable" |- | github || https://github.com/dhruvasagar/vim-table-mode |- |} </blockquote><!-- Documentation --> = Usage = <blockquote> <syntaxhighlight lang="vim"> <leader>tm " toggle enable/disable table-mode </syntaxhighlight> <syntaxhighlight lang="vim"> | foo | bar | baz | " <<- press enter, followed by '||' " generates: " =======...") |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
|- | |- | ||
| github || https://github.com/dhruvasagar/vim-table-mode | | github || https://github.com/dhruvasagar/vim-table-mode | ||
|- | |||
| <code>:help table-mode</code> || https://github.com/dhruvasagar/vim-table-mode/blob/master/doc/table-mode.txt | |||
|- | |- | ||
|} | |} | ||
Line 14: | Line 16: | ||
<syntaxhighlight lang="vim"> | <syntaxhighlight lang="vim"> | ||
<leader>tm " toggle enable/disable table-mode | <leader>tm " toggle enable/disable table-mode | ||
<leader>ts " sort by column under cursor | |||
|| " (at start of table row) creates a table-break | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 30: | Line 34: | ||
| aaaaaaa | bbb | ccc | | | aaaaaaa | bbb | ccc | | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Formulas == | |||
<blockquote> | |||
It could be my setup, but I've found formulas a bit buggy. | |||
* duplicating formulas on <code><leader>tfa</code> | |||
* incorrect sums (possibly my misunderstanding) | |||
It's also tricky to count rows. If you want a spreadsheet, use a spreadsheet program. | |||
</blockquote><!-- Formulas --> | |||
</blockquote><!-- Usage --> | </blockquote><!-- Usage --> |
Latest revision as of 22:51, 5 November 2023
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 |Formulas
It could be my setup, but I've found formulas a bit buggy.
- duplicating formulas on
<leader>tfa
- incorrect sums (possibly my misunderstanding)
It's also tricky to count rows. If you want a spreadsheet, use a spreadsheet program.