public
Description: My vim files for Git
Clone URL: git://github.com/motemen/git-vim.git
motemen (author)
Thu Jul 24 03:46:56 -0700 2008
commit  5a5d154a7cdad226ef64fa7c49019e936d12846f
tree    02720741aa11df07913ae6d8391420fe1318cc3d
parent  b0c8748f9544e758b0241ec376699a6d52d0758b
name age message
file README.rdoc Thu Jul 24 03:46:56 -0700 2008 Wrote README in rdoc syntax. [motemen]
directory plugin/ Wed Jul 23 20:38:44 -0700 2008 Syntax for git-diff --stat. [motemen]
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.
: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>