casprwang / vim-git-it

asynchronous git for Vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vim Git it!

do git add, git commit(with your message), and git push in one command

Whenever you just want to push all your recent changes with a message, just :Gitit {Your message} and it's done.

Demo

Demo

Installation

Use your favorite plugin manager

" vim-plug
Plug 'skywind3000/asyncrun.vim'
Plug 'casprwang/vim-git-it'

Usage

Git add all, commit all with a prompting message and push to the remote(master)

:Gitit <your messgage with spaces>

Git commit the current file with a prompting message

:GititCommit <your messgage without quotes>

remember to hit enter at the end. After then, your commits will be pushed/staged on the background silently.

Mapping

nnoremap {shortcut} :Gitit
nnoremap {shortcut} :GititCommit

Todos:

  • Run in the background
  • add non-pushing command

License

MIT © Casper Wang

About

asynchronous git for Vim


Languages

Language:Vim Script 100.0%