I added a function in my .vimrc that’s just few search and replace commands. However if one of the patterns is not found I get an error message that I need to enter through. How can I suppress this?
Share
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.
You can either use
:silentor:silent!as a prefix to any command or you can add the ‘e’ option to the substitute, which is often easier.For more information, see
The information on the
eflag is a few paragraphs down from the:s_flagshelp.