I use vim
all the time, but I can never remember off the top of my head. I have to look it up every time. So I’ve made a note of it here.
This command simply replaces all occurrences of string
with replace
. Simple!
:%s/search/replace/g
I use vim
all the time, but I can never remember off the top of my head. I have to look it up every time. So I’ve made a note of it here.
This command simply replaces all occurrences of string
with replace
. Simple!
:%s/search/replace/g