How to replace strings in VIM

Replacement string
Global, replace string:
Command mode :% s/old/new/g
Old, new does not need double quotes, g is global, without g is the first line to be changed example: % s/test_shm_tool.c/$(SOURCE)/g local, replace string:
: n1, n2 s/old_str/new_str/g, add c if each line is confirmed

Read More: