Victoria's Neofeed
  • 2019-08-07 11:00:28 -0400 -0400
    Victoria Drake

    Victoria Drake

    Aug 07, 2019

    Search and replace a word in Vim:

    :%s/\<word\>/newword/g

    The % indicates to look in all lines of the current file; s is for substitute; \<word\> matches the whole word; and the g is for globally, ie. every occurrence.

    Or use gc at the end there, if you want to confirm (c) each change.

    2019-08-07 11:00:28 -0400 -0400 1831 days ago
    webmention this