On Wednesday, October 12, 2011 12:00:59 niva wrote:

> Hi

> I have some data organized by column in a buffer like that :


> ;               ;                 ; 48.00             ;
> ;               ;                 ; 32.50             ;
> ;               ;                 ; 15.00             ;
> ;               ;                 ; 59.40             ;
> ; 47.80         ;                 ;                   ;
> ; 10.90         ;                 ;                   ;


> ; 12.38         ;                 ;                   ;

> ;                  ;                 ; 35.65          ;
> ; 10.90         ;                 ;                   ;
> ; 29.99         ;                 ;                   ;
> ;                  ;                 ; 342.57        ;
> ;                  ;                 ; 400.00        ;

> I would like to got the most faster method that sum each
> column like done in Excel by SUM() function.

i'm sure other ppl will suggest methods that are faster, but
the best way in my opinion is to write a tcl script that knows
the layout of your data -- design it to read from sysin, and
write a vim script to filter the relevant lines through your
tcl

i'll be glad to provide examples, or poke through some of the
code at

    http://toothpik.github.com

the 'konsole four' section might be the closest to what you
are targeting -- i've got an entire budgeting spreadsheet
converted to ascii text which i maintain through vim, tcl and
bash scripts

using vim filters allows you to write scripts to massage your
data in any language you feel comfortable with while at the
same time keeping your vim lean and mean

sc

-- 
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

Reply via email to