Hi,
Mark Woodward wrote:
> Thanks Jürgen,
>
> On Fri, 11 Aug 2006 11:54:50 +0200
> Jürgen Krämer <[EMAIL PROTECTED]> wrote:
>
> snip...
>
>> 1.) if this text starts at line 1
>>
>> %s/^\d\+:/\=line('.') . '.) '/
>>
>> 2.) for at most 26 lines
>>
>> %s/^\d\+:/\=nr2char(char2nr('a') + line('.') - 1) . ') '/
>>
>> Regards,
>> Jürgen
>
>
> Is is possible where text starts on a line other than 1?
subtract the line number and add 1, e.g.,
50,100s/^\d\+:/\=(line('.') - 50 + 1) . '.) '/
Regards,
Jürgen
--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)