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.86k stars 111 forks source link

How to define a :Make alias for AsyncRun make equivalent command #84

Open flux242 opened 6 years ago

flux242 commented 6 years ago

The closest I could get is this: command! -bang -nargs=* -complete=file Make call asyncrun#run('<bang>', '', 'make <q-args>') | cwindow 10'

It would work if I'd specify an additional arguments like - :Make V=99, but it wouldn't without

Please add an example to the readme if it's possible

flux242 commented 6 years ago

f-args helped. Update the readme anyway. I didn't enjoy digging that mammoth shit vim scripting syntax

Konfekt commented 6 years ago

See also https://github.com/skywind3000/asyncrun.vim/issues/96

skywind3000 commented 6 years ago

Thank @Konfekt , I took his idea and fixed this issue:

see here.

https://github.com/skywind3000/asyncrun.vim/issues/96