:s/\/\\index{&}/gc
This, with some more fudging with the replace string seems to serve my
purpose for now. Thank You. However, I was wondering if there was
already some sophisticated script or function written for this purpose
explicitly that can handle all the various situations that may arise
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
Hi,
I want to create an index with the makeindex program. So, I have to
markup my latex document with \index{index_term}.
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 t