Friday, January 10, 2014

Re: Follow external command output

On Friday, January 10, 2014 3:48:45 PM UTC-5, Benjamin Klein wrote:
> I know that I can right now do something like
>
>
>
> :echo system("external --command")
>
>
>
> and have Vim (after waiting for the command to finish) `echo` the output as a message.
>
>
>
> Is there a way for me to have each new line of output from the command `echo`ed as a message as it occurs? This command takes some time to run and rather than wait for it to finish before seeing any output I'd like to be able to follow what it's doing as it goes.
>
>
>
> Thanks!
>
>
>
> Ben
>
>
>
> --
>
> b

If I understand what you are asking, you can do this with

:!external --command

This will run "external --command" within the shell and when the command is finished, you can press enter to return to vim. Type ':help !' in vim for more information.

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: