DEV Community

Cover image for Vim tip: alias command
Vasily Polovnyov
Vasily Polovnyov

Posted on

Vim tip: alias command

Alt Text

To integrate vim with Git, I don't use vim-fugitive, but Gina:
https://github.com/lambdalisue/gina.vim

Everything is fine with it except that it takes a long time to type :Gina. So I made myself a one-letter alias:

command -nargs=+ G :Gina <args>
Enter fullscreen mode Exit fullscreen mode

And now I can do this:

:G status
:G add lib
:G commit -v
:G push
Enter fullscreen mode Exit fullscreen mode

Top comments (0)