5

I am running a simple substitution on many files with :argdo %s/foo/\rfoo/ge | update. Vim shows the progress through files (number of substitutions in file) and when the screen fills up it blocks with the prompt:

...
"Data_357.csv" 63 lines, 22551 characters
"Data_358.csv" 204 lines, 946953 characters
-- More -- SPACE/d/j: screen/page/line down, b/u/k: up, q: quit 

How can I make it run non-stop?

4
  • 6
    try :silent! argdo %s/foo/\rfoo/ge | update ... silent skips displaying normal messages and ! skips error messages as well
    – Sundeep
    Commented Jun 1, 2016 at 13:15
  • 2
    Related to superuser.com/questions/430843/…
    – SibiCoder
    Commented Jun 1, 2016 at 13:19
  • awesome! Thanks. So, will someone post an answer? (@spasic) I guess it's better to have this question on vi.stackexchange even though the superuser one is very similar...
    – xealits
    Commented Jun 1, 2016 at 14:23
  • @spasic you answered the question in a comment. Please move this to an answer.
    – jecxjo
    Commented Jun 1, 2016 at 15:47

1 Answer 1

7
:silent argdo %s/foo/\rfoo/ge | update

or

:silent! argdo %s/foo/\rfoo/g | update
  • silent skips displaying normal messages
  • ! skips error messages as well
    • As per this vimcast, the e flag in substitute command can also be removed

For more options and in-built help, refer to this Q&A

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.