你推荐vim的哪个VCS (git,hg)插件?
发布于 2010-09-08 21:51:29
对于git,我推荐fugitive。我特别喜欢diff模式的很好的集成,(:Gdiff),它使得进行交互式添加成为可能。
发布于 2010-09-07 02:42:56
vcscommand.vim就是你要找的东西。我没有在Git或Mercurial中使用过它,但我确实在Subversion中使用过它,效果很好。查看the documentation,它详细介绍了所有命令;映射部分告诉您如何调用它们:
|<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我通常在Vim窗口旁边的终端中执行大多数操作,但annotate (\cN,如果您使用的是默认引线)会在新的拆分中弹出注释,这非常有用
https://stackoverflow.com/questions/3653219
复制相似问题