amjith / git-vim forked from motemen/git-vim

My vim files for Git

This URL has Read+Write access

commit  44215060718249449d59e1b59524817cf2d102db
tree    3fb55c9e47ae3fa4fc4f1592e19e8a73f085f2df
parent  73a181764660f50b905e5baf2129b4018246fe39
git-vim / README.rdoc
100644 34 lines (29 sloc) 1.135 kb

git.vim

Introduction

Git-vim provides:

  • Plugin files for calling git functions from inside Vim
  • Syntax files for git displays

Commands

:GitAdd <file>
git-add <file> or current file if not specified.
:GitCommit <args>
git-commit.
:GitStatus
Show git-status of current file or repository.
:GitLog
Show git-log of current file or repository.
:GitCheckout <args>
git-checkout. Completes git commits.
:GitDiff <args>
git-diff. Completes git commits.
:GitPull <args>
git-pull.
:GitPullRebase
git-pull —rebase.
:GitPush <args>
git-push. Defaults to +git push origin <current-branch>+.
:GitCatFile <args>
git-cat-file.
:Git <args>
Does any git command.
:GitVimDiffMerge
Experimental. Call this command on unmerged file to enter vimdiff mode.
:GitVimDiffMergeDone
Call this command after merging.

Keymaps

<Leader>gd
:GitDiff
<Leader>gD
:GitDiff —cached
<Leader>gs
:GitStatus
<Leader>gl
:GitLog
<Leader>ga
:GitAdd
<Leader>gA
:GitAdd <cfile>
<Leader>gc
:GitCommit

In git-status buffer

<Enter>
:GitAdd <cfile>