I would like to write a search and replace that only operates on lines that are 
found in a separate search.  So, for example, lets say I want to replace all 
occurrences of "long" with "int" but only on lines that have the word "key" on 
them.  I could probably write out a script to do this, but I'm betting there is 
a really slick way for Vim to do this without a script.  Any Ideas?  Thanks.


Kurt

Reply via email to