This solution works fine for two strings,but for three or more substitutions?
I have tried
:%s:one:two:e | s:three:four:e | s:five:six:e
But the third line on this example remain the same
one
two
three
five
vim
This solution works fine for two strings,but for three or more substitutions?
I have tried
:%s:one:two:e | s:three:four:e | s:five:six:e
But the third line on this example remain the same
one
two
three
five
Best Answer
You just forgot to place a
%
before yours
command:The
%
makesvim
to search your whole text instead of just the current line.