mootoh / git-vim forked from motemen/git-vim

My vim files for Git

This URL has Read+Write access

mootoh (author)
Sun Sep 06 06:10:05 -0700 2009
commit  367073350c0f5af0cd67e5e7a56f17854c81ed70
tree    e14304b8ff5a4a0e32082199bfff2e211b06d05c
parent  7c0704b5af84c3b5521cc3d9058080fe92a7265f
name age message
file README.rdoc Thu Apr 30 20:20:27 -0700 2009 Wrote GitPull/GitPullRebase/GitPush in README [motemen]
file git-vim.txt Loading commit data...
directory plugin/
directory syntax/ Wed Jul 23 20:38:44 -0700 2008 Syntax for git-diff --stat. [motemen]
README.rdoc

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>