On Tue, January 10, 2012 7:40 am, lith wrote: > Am Dienstag, 10. Januar 2012 06:03:02 UTC+1 schrieb Karthick: >> >> > You can do calculations. Neither the wiki nor the code of "table.zip" >> > contained the word "sum". Didn't read the docs though. >> >> But it is possible to script it in vim. I would do it little >> differently than what was shown in video... >> > While it's possible in vim to add up visually selected numbers, I think > you'd have a hard time implementing field functions as shown in the video. > I bet they used overlays ( > http://www.gnu.org/savannah-checkouts/gnu/emacs/manual/html_node/elisp/Overlays.html) > to implement these field functions. Unfortunately, vim doesn't have such a > feature (yet?).
The csv plugin (http://www.vim.org/scripts/script.php?script_id=2830) implements a Sum Function and allows easy definition of custom functions. regards, Christian -- 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
