* [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote:

> Just put the command text you want to execute into a named
> buffer, then execute the named buffer.  In your case:
> 
> :s/pattern/substitute/
> 
> then for example (deleting the text into buffer s), say:
> 
>       "sdd
>       @s

Thanks Luke,

That's neat. I later found that if you put the pattern into a named
buffer, you can paste it into the command line using
                <ctrl-r>
which produces a greyed-out ", after which you can put the buffer name.

Also neat.

I found this in vim-tips.

Nick
-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to