Tim Chase wrote:
Alternatively, rather than saving your whitespace and then restoring it, you can use

    :s/\<word1\>/new_word/g
But you need to know the word you want to substitute, if I set it to <cword> and <cword> appears more than once in the line, multiple words will get replaced.

--
Matthias-Christian Ott

Reply via email to