On 3 fév, 19:58, Gary Johnson <[email protected]> wrote:
> On 2010-02-03, epanda wrote:
> > > On Mi, 03 Feb 2010, epanda wrote:
>
> > > > I would like to see the output message of a binary into the messages
> > > > list of Vim.
>
> > > > Messages are output from myBinary along the time.
>
> > > > redir @a
> > > > exec 'myBinary'
> > > > redir END
>
> > > > How can i do?
> > 1/ I would like to open cl window with messages into it
> > 2/ I would ike to be able to refresh cl content because my binary is
> > feeding messages continuously.
>
> I think the way to do this is to run your binary either from the
> command line of a different terminal or in the background from vim
> and redirect its output to a file, e.g.,
>
> :!myBinary > myBinary.out &
>
> Then, each time you wish to refresh the quickfix (cl) list, execute
>
> :cgetfile myBinary.out
>
> HTH,
> Gary
I prefer the asynchronous method but after reading and testing the
tutorial, it seems that my binary is not launched into background task
under
windows.
It suspends the GetAsyncText call func:
let cmd = 'silent !start cmd /K "D:/myBinary.exe >
'.temp_file.
\ ' & vim --servername '.v:servername.' --remote-expr
"GetAsyncText('."'".temp_file."')\""
\ .' & pause"'
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php