This global command searches for "beep" anywhere in a line of a file  
and copies it to register a.

The use of uppercase "A" appends it to register a rather than  
overwriting.

:g/.*beep.*/normal "Ayy

This works fine unless there is already something in register a.

Is there a simple way to clear a register before issuing this global  
command?

-- 
Bill Muench
Santa Cruz, California


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to