Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom command #230

Open
Integralist opened this issue Jul 20, 2021 · 0 comments
Open

Custom command #230

Integralist opened this issue Jul 20, 2021 · 0 comments

Comments

@Integralist
Copy link

Integralist commented Jul 20, 2021

馃憢馃徎 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 鉂わ笍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant