How can I swap the match and replace shown below?
//each line contains 5 s///g, shown below with only 2 s///g
:silent! %s/ó/ó/g | :silent! %s/ú/ú/g
to
:silent! %s/ó/ó/g | :silent! %s/ú/ú/g
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In Vim: try this (using + as a delimiter). Note that this will not handle the special meanings of characters.
With the verymagic option (
\v):