Open alem0lars opened 6 years ago
I'd like to expand aliases providing arguments, for example:
abbrev-alias -f hping-listen="hping -9 $1 -I $2 | /bin/sh"
Where $1 and $2 will be expanded to the first two arguments provided after the alias has been expanded.
Is that possible to do something similar to that?
I'd like something similar to vim's snippets expand functionality.
Thanks.
My idea is to do something like:
my-alias foo bar <C-x>
And it will expand my-alias replacing foo with in the first placeholder and bar in the second placeholder.
my-alias
foo
bar
I'd like to expand aliases providing arguments, for example:
Where $1 and $2 will be expanded to the first two arguments provided after the alias has been expanded.
Is that possible to do something similar to that?
I'd like something similar to vim's snippets expand functionality.
Thanks.