how can vim replace all the same words in a certain line.
15 for(i = 0; i < N; i++)
I want to replace "i" with "test" in the line above,whose line number is 15.
When I tried this command
Line 15 turned to be this:
for(test = 0; i < N; i++)
It only replace the first "i",but I want to change all "i" in line 15.
Any help will be appreciated.