I want to create a command or function to combine multiple finds and replaces. I have tried following command:
command MyFR %s/first/1st/g | %s/second/2nd/g | %s/third/3rd/g
It works but stops midway if no 'first' or 'second' is found. The error is:
E486: Pattern not found: <pattern>
How can I make this command work for 'second' and 'third' to be replaced, even if there is no 'first' in text? Thanks for your help.