DEV Community

loading...
Cover image for Vim tip: alias command

Vim tip: alias command

vasily profile image Vasily Polovnyov ・1 min read

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

Discussion (0)

pic
Editor guide