p1. I am good/p
p2. You sucks!/p
p3. Take that, moron/p
I want to change those sentences into:
p id=11. I am good/p
p id=22. You sucks!/p
p id=33. Take that, moron/p
How do I do that using vim replace command?
All I can think is this:
:%s/p\d/p id=\d\d/igc
Me personally? I'd do something like
Hi, I have these words:
p1. I am good/p
p2. You sucks!/p
p3. Take that, moron/p
P.S. If you are feeling frustrated (Vim can do that to you), try
writing
something more soothing, e.g.:
p1. I am happy/p
p2. You are beautiful!/p
p3. Take that, as a token of my love/p
Heh, I thought his
--- Akbar [EMAIL PROTECTED] wrote:
Hi, I have these words:
p1. I am good/p
p2. You sucks!/p
p3. Take that, moron/p
I want to change those sentences into:
p id=11. I am good/p
p id=22. You sucks!/p
p id=33. Take that, moron/p
How do I do that using vim replace command?
All I can