[Novalug] vim "script" tricks

Paul unix at bikesn4x4s.com
Thu Dec 14 13:51:56 EST 2006


On Thu, December 14, 2006 1:39 pm, Peter Larsen wrote:
> Does anyone here work extensively with vim and knows how to make small
scripts?
>
> I am looking for a simple way of basically having a regular expression
search for "identifiers" and put them in a buffer, and when the whole
document has been searched, I want to loop through the found identifiers
and add lines where the identifier is a parameter to the text I insert.
>
> I know I need to use the secondary buffers - but how do you loop through
those and insert them in your current buffer??
>
> I'll be happy to just get a good link where I can do a little
self-study.

Look here, Perl would handle that nicely, and it's a great language to use
for handling scripting chores.

http://learn.perl.org/







More information about the Novalug mailing list