1.2. Git And Vim - shinokada/gitnotes GitHub Wiki
Reference: Using Git from command-line mode
git config --global core.editor vim
# check your config
git config --list
# use :!
# add the current file
:!git add %
:!git commit -m "commit message"
:!git push origin master
:!git diff --cached
nnoremap \ga :<C-u>!git add %<CR>