I usually either end up using [range]%s/word/another_word/gc or do it manually. I wonder if you guys use a different, perhaps a faster, way. Assume that I have vim 7.2.
I usually either end up using [range]%s/word/another_word/gc or do it manually. I wonder if
Share
I usually use
/wordplus enter to find the word;cwanotherplus ESC to replace it the first time; thennto find the next occurrence of the word (possibly a few times if it appears several times on the line and I don’t want to change every one), and then.to repeat the last change.I use the range based global search-and-replace when the occurrences are scattered throughout an extensive range and it is really global search-and-replace that I want.