On Oct 14, 11:41 am, niva <[email protected]> wrote:
> Hi,
>
> I am following the asynchronous tutorial on vim wikia and I have done
> this func:
>
> function! SendAsyncCmd(funcname)
>   exec 'silent !start /min cmd /c  "gvim -c "call '.a:funcname.'()" -c
> q"'
> endfunction
>
> From my current gvim instance, I would like to run some function in
> background but this command make gvim appears while I aim to call
> funcname silently through silent gvim new instance.
>
> Can you help me ?

Does it need to be gvim? Or can you use console vim (replace gvim in
your external command, with vim)? gvim always forks and pops up in the
foreground when called from the command line. Well, you can pass the -
f argument to make sure it doesn't fork, but I think it will still pop
up in the foreground. It is a GUI application, after all, and isn't
really meant to run in the background.

If it must be gvim, you can try adding a -c "simalt ~n" before the
function call, to minimize it right away.

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

Reply via email to