4

When using vim to run a shell command, eg. with

:!ls

or

:sh

to get into a shell, I always have the prompt

Press ENTER or type command to continue

This is fine for "internal" vim commands like :ls, for which the screen must pause to allow me to see the output, but when I want to run script eg. :!./% then I have to press enter after running it. Is there an option that will allow vim commands to pause but not shell commands?

4

Maybe this ?

:silent !ls
  • Note that you'll only see the output of any commands you run with :silent when you EXIT vim. – pbr Nov 25 '09 at 16:40
  • 1
    He didn't say anything about that -> he just doesn't want to press enter. – Rook Nov 26 '09 at 19:46
  • 1
    :silent is documented in the help as the way to prevent the "Press ENTER" message. There should be a 'shortmess' flag for this, but none exists. – njd Feb 4 '10 at 15:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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