skywind3000 / asyncrun.vim

:rocket: Run Async Shell Commands in Vim 8.0 / NeoVim and Output to the Quickfix Window !!
https://www.vim.org/scripts/script.php?script_id=5431
MIT License
1.84k stars 109 forks source link

[Question] Can Asycncrun be configured to run in another build/run server? #202

Open vinodkri opened 4 years ago

vinodkri commented 4 years ago

Hi, @skywind3000

Our development environment is set up in such a way that for coding/development we use a development server. To and build our code, there is a separate build/run servers. I would want to run the asyncrun in the development server which would build/run the code in build servers and populate the results back in the quick fix list of the development server.

Is this possible with asyncrun ? is there a way to configure these?

I read through the doc and Readme I didn't find any info on it. But I found VIM_SVRNAME, but I couldn't figure out if I could use this somehow to achieve what I want.

Thanks for your cool plugin.

skywind3000 commented 4 years ago

VIM_SVRNAME is for another vim instance in the local machine, not for a remote host.

Your question can be achieved by:

:AsyncRun ssh xxx.xxx.xxx.xxx  COMMAND

or you may need a separated script to sync your code to the server and execute build jobs:

:AsyncRun my_remote_build_script.sh
vinodkri commented 4 years ago

@skywind3000 Thanks for the quick reply. I will try one of the options.