网址: https://github.com/motemen/git-vim
Introduction
Git-vim provides:
Plugin files for calling git functions from inside Vim Syntax files for git displays
Commands
- GitAdd <file></file>
git-add <file></file> or current file if not specified.
- GitCommit <args></args>
git-commit.
- GitStatus
Show git-status of current file or repository.
- GitLog
Show git-log of current file or repository.
- GitCheckout <args></args>
git-checkout. Completes git commits.
- GitDiff <args></args>
git-diff. Completes git commits.
- GitPull <args></args>
git-pull.
- GitPullRebase
git-pull —rebase.
- GitPush <args></args>
git-push. Defaults to +git push origin <current-branch></current-branch>+.
- GitCatFile <args></args>
git-cat-file.
- Git <args></args>
Does any git command.
- GitVimDiffMerge
Experimental. Call this command on unmerged file to enter vimdiff mode.
- GitVimDiffMergeDone
Call this command after merging.
Keymaps
gd
:GitDiff
gD
:GitDiff —cached
gs
:GitStatus
gl
:GitLog
ga
:GitAdd
gA
:GitAdd <cfile></cfile>
gc
:GitCommit
In git-status buffer
:GitAdd <cfile></cfile>
License
The MIT License