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.85k stars 109 forks source link

[FeatureRequest] AsyncRestart #173

Open GopherJ opened 4 years ago

GopherJ commented 4 years ago

Hello, is it possible to have the command AsyncRestart, I think it'll be cool to have it for web server development.

skywind3000 commented 4 years ago

A combination of AsyncStop and AsyncRun can achieve this.

And for your case, maybe just a :

:!apache2ctl -k restart &

is enough, you can bind it to F9

:noremap <F9> :!apache2ctl -k restart&<cr>
GopherJ commented 4 years ago

It's possible to combine AsyncStop and AsyncRun but the key point of AsyncRestart is being able to recall the last command.