是否 vim 支持 git 并能够连接到存储库并执行 git 操作?

Is there vim support for git with ability to connect to repositories and perform git operations?

VS Code 集成了 Git 功能,并且有许多其他 Git 相关任务的扩展。我一直在寻找对 Vim 执行相同操作的方法,但没有找到任何方法。是否有 vim 扩展与 Git 集成以获取状态信息、diff 和 push/pull 等,通常用于 Git,特别是 GitHub?

好,老vim-fugitive. There also is vim-gitgutter. Also additional support in NERDTree
只需浏览 Vim Awesome 上的插件即可找到许多

更不用说 Vim 有一些内置支持,通常用作 mergetool

好吧,Vim 对各种版本控制系统的内置支持几乎仅限于:

  • 执行 $ git commit
  • 等操作时的语法和格式
  • 使用 :help :! 执行任意外部命令的能力,例如 :!git checkout feature/foo-bar

除此之外,您还必须在 vim.org 寻找第三方插件。