On Jan 15, 4:19 pm, drlatex <[email protected]> wrote: > Hello, > > I would like to perform the command: > > :argdo 0s/\s/_/g | 0s/\//g | 0s/\.//g | 0s/\://g | 0s/,//g | 0s/;// | w > > for a batch of >1000 files. > > But the problem is that some files don't have the string '.' or ',' > > So what happens is I get the message > > "E486: There were no instances of '.' " > > and everything completely stops. I would like it to ignore the fact that > there were no results and move onto substituting the next type of character. > > Is there a way to do my command and force it to keep going to the next > command if it doesn't find anything relavent for the previous command ??
Preface the command(s) with silent!. :help silent Brett Stahlman > > Thank you. > -- > View this message in > context:http://old.nabble.com/overriding-during-substitute-command-tp27184403... > Sent from the Vim - General mailing list archive at Nabble.com.
-- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php
