drlatex wrote:
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 '.' "

You can use the "e" flag of :s to ignore errors such as you're getting:

  0s/\s/_/ge

You can read about the flag(s) at

  :help :s_flags

-tim


-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to