JuanPablo
JuanPablo

Reputation: 24814

vcs plugin for vim?

which VCS (git, hg) plugin for vim do you recommend?

Upvotes: 3

Views: 2043

Answers (2)

François
François

Reputation: 8138

For git, I recommend fugitive. I especially like the nice integration of the diff mode, (:Gdiff) which makes it possible to do interactive add.

Upvotes: 4

Drew Stephens
Drew Stephens

Reputation: 17837

vcscommand.vim is what you're looking for. I haven't used it with Git or Mercurial, but I do use it with Subversion to great effect. Check out the documentation, which details all of the commands; the mapping section tells you how to invoke them:

|<Leader>|ca VCSAdd
|<Leader>|cn VCSAnnotate
|<Leader>|cN VCSAnnotate!
|<Leader>|cc VCSCommit
|<Leader>|cD VCSDelete
|<Leader>|cd VCSDiff
|<Leader>|cg VCSGotoOriginal
|<Leader>|cG VCSGotoOriginal!
|<Leader>|ci VCSInfo
|<Leader>|cl VCSLog
|<Leader>|cL VCSLock
|<Leader>|cr VCSReview
|<Leader>|cs VCSStatus
|<Leader>|cu VCSUpdate
|<Leader>|cU VCSUnlock
|<Leader>|cv VCSVimDiff

I usually do most of these things in a terminal beside my Vim window, but annotate (\cN if you're using the default leader) pops up the annotation in a new split, which is super useful

Upvotes: 3

Related Questions