Custom command
Integralist opened this issue ยท 0 comments
Integralist commented
๐๐ป I was looking for a way to make running the same command quicker.
So I wanted an alias like:
:Ara <any list of commands>
e.g. translate...
:Ara sleep 10 && ls -la
into...
:AsyncRun -mode=term -pos=floaterm_reuse -position=bottomright -width=0.4 sleep 10 && ls -la
I found https://github.com/skywind3000/asyncrun.vim/wiki/Customize-Runner but it didn't seem quite right.
I tried something custom like:
fun! AsyncRunAlias(cmd)
call asyncrun.AsyncRun(a:cmd, '-mode=term -pos=floaterm_reuse -position=bottomright -width=0.4')
endfun
command! -nargs=* Ara call AsyncRunAlias(<q-args>)
But this errors.
Any help would be greatly appreciated โค๏ธ