Simply question,with sed is possible to do a multiple substitution

sed -e s/uno/due/ -e s/uno/due/

Is possible something similar with VIM internal substitution?




Doesn't work

1 Answer 1


Try this:

:'<,'>s/445/53/e | s/444/53/e

This works by concatenating Ex commands using the pipe (|) symbol and using the e substitution flag (see: :help :s_flags) to avoid raising an error when the pattern cannot be found.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.