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…