On 2010-03-18, epanda wrote:
> > Character Syntax Definition
> > --------- -------------------- -------------------------------
> > & [...] command1 & command2 Use to separate multiple
> > commands on one command line.
> > Cmd.exe runs the first command,
> > and then the second command.
> > --------- -------------------- -------------------------------
>
>
> I have tried your advise with cmd1 & cmd2
>
> " Test Two
> let cmd1 = 'cmd /c "cppCheck ' . a:dir . ' -a --enable=all --template
> gcc 1> infos.txt 2> cppcheck.out'
> let cmd2 = 'cmd /c "vim --servername ' . v:servername . ' --remote-
> expr "GetAsyncText('."'infos.txt'". ')"'
> exec '!start ' . cmd1 . ' & ' . cmd2
>
>
>
> but it is the same result : cmd2 is launched only if cmd1 has finished
> its task.
>
> An other idea?
I don't see how that was following my advise. It looks to me that
you're still using one start command. One start command will run
one DOS/Windows command. It doesn't have any more ability to run
multiple commands in the background than cmd does.
What I meant was that you may have to execute the equivalent of the
following two Vim commands.
:!start cmd1
:!start cmd2
You can do this with a command like this.
:exe "!start cmd1" | exe "!start cmd2"
When I do that (using "cmd pause", no quotes, in place of cmd1 and
cmd2) I get two cmd windows and I get control of Vim back.
I'll leave it to you to work out the details for your case.
Regards,
Gary
--
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
To unsubscribe from this group, send email to
vim_use+unsubscribegooglegroups.com or reply to this email with the words
"REMOVE ME" as the subject.