EN
Vim replace all
1 points
Quick solution:
xxxxxxxxxx
1
:%s/what_to_replace/replace_with/g
Example - replace all version in file from 1.5.0 to 1.6.0:
xxxxxxxxxx
1
:%s/1.5.0/1.6.0/g
When we want to replace all text in some lines:
xxxxxxxxxx
1
:3,7s/what_to_replace/replace_with/g
It will replace only in lines from 3 to 7 - both included (inclusive).