On Mon, Jan 9, 2012 at 10:18 PM, Marc Weber <[email protected]> wrote: > Excerpts from Karthick Gururaj's message of Mon Jan 09 12:48:38 +0100 2012: >> table.vim script seems to come close? Never used it myself though. >> See: >> http://vim.wikia.com/wiki/Smarter_Table_Editing_II >> http://www.vim.org/scripts/script.php?script_id=769 > I think you've missed the "sum" function being used in Emacs. > You can do calculations. Neither the wiki nor the code of "table.zip" > contained the word "sum". Didn't read the docs though. I saw that in the video, and I agree the table script doesn't have any such features.
But it is possible to script it in vim. I would do it little differently than what was shown in video... perhaps do a block select of numbers to be added, place the cursor where the sum needs to be entered and type a hotkey, say '+'. It is easy enough to yank the contents of last visual selection, scan for numbers in each line, add them and insert the sum at cursor position... -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
