> > >> let lines=getline(a:firstline, a:lastline)
> > >> map(lines, 'split(v:val)[a:colnr-1]')
>
> > How can I replace a:colnr by the last fields number in the item of
> > List lines passed into map func ?
>
> use -1


Works fine out of error 805 use of a float number as a number at this
line :
call append(a:lastline, printf("total\t%02d", eval(join(lines,'+'))))

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

To unsubscribe from this group, send email to 
vim_use+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to