Marc Weber schrieb am 12.01.2012 um 02:38 (+0100):

> Would take me 30secs to one minute to write. If you don't know VimL
> much.. Why not just write your own perl script and pipe the buffer?
> 
>   :%! perl myscript_adding_prefixes.pl

But this in a Windows batch file, it does the numbering:

@ECHO OFF
perl -e "push @l, [$.,$_] while <>; $_->[0]*=100/($#l+1) for @l; printf q(%%3u 
%%s), @$_ for @l"

-- 
Michael Ludwig

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