1 May 2008 01:02
Re: pass three non-adjacent lines to a filter
A.Politz <politza <at> fh-trier.de>
2008-04-30 23:02:41 GMT
2008-04-30 23:02:41 GMT
Rahul wrote:
>
>On Apr 30, 1:20 pm, "A.Politz" <poli... <at> fh-trier.de> wrote:
>
>
>>Write a little api...
>>[snip]
>> if a:lnum > 0 && a:lnum < line('$')
>> exec "let s:match_ids[a:lnum] =
>>matchadd('SelectorColor','^\\%'.a:lnum.'l.*$')"
>> endif
>> endif
>>[snip]
>>
>>
>
>
>Thanks AP! While I'm still applying my full vim knowledge to figure
>out how your snippet works; what's "matchadd"? My vim seems to not
>like that one. :help matchadd also leads know where....so also for
>matchdelete.
>
>
>
I think it was added in 7.0 or 7.1 . It is the
same as the :match command, but allows 'arbitrary'
amounts of different patterns.
(Continue reading)
RSS Feed