Blog Archives

Vim Trick: Replace One String with Another

These 3 vim tricks are very usefull when you need to replace strings in text files. 1. This “vim command” replaces string1 with string2 :s/string1/string2/ only in the first string1 match, on the current line. [Esc]:s/string1/string2/ 2. This replaces string1

Tagged with: , , , , ,
Posted in The Linux and Unix Articles!


Subscribe to get the latest Linux news and how to guides directly on your e-mail!