Thursday, February 3, 2011

Re: Running a shell command, but only waiting for keypress if its exit status is non-zero?

Dun Peal wrote:
> Hi,
>
> I'm running an external program `foo` from vim via `:!foo`. Whenever I
> do, I see its stdout output scroll by, followed by a "Press ENTER or
> type command to continue" prompt.
>
> I'd like to not get that prompt unless the program's exit status is
> non-zero. Otherwise, it should just signal success and let me keep
> working. I don't care if the output gets dumped to the vim window,
> although ideally there would be a way to disable that too.
>
>
Some more: the help mentions:

To reduce the number of hit-enter prompts:
- Set 'cmdheight' to 2 or higher.
- Add flags to 'shortmess'.
- Reset 'showcmd' and/or 'ruler'.

(see :help hit-enter)

Regards,
Chip Campbell

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: