On Mon, 19 Feb 2007, "C.G.Senthilkumar." apparently wrote: 
> Is there a script or some mechanism to do this 
> effeciently? For example, when I search a term, vim should 
> take the cursor to the term and prompt a confirmation(y/n) 
> to index that term. Upon (y) it should include 
> \index{search_term}. After y/n, it should take me to the 
> next occurence until the end of the file. 

:s/\<search_term\>/\\index{&}/gc

hth,
Alan Isaac




Reply via email to