开发者

vcs plugin for vim?

which VCS (git, hg开发者_运维百科) plugin for vim do you recommend?


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜