Wikia

Vim Tips Wiki

Using Git from Vim

Talk0
1,613pages on
this wiki
Revision as of 07:15, March 31, 2014 by 79.194.115.151 (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Tip 1614 Printable Monobook Previous Next

created February 3, 2009 · complexity basic · author Alecclews · version 7.0


Git is a distributed version control system.

To use git from Vim, 5 packages are available:

  • vim-fugitive (status unknown). Help text is provided.
  • git-vim (included with Vim 7.1 and later). Provides ftplugin and syntax files for editing various git files (e.g. commit messages).
  • fastgit.vim.
  • VCScommand plugin that needs to be installed separately. This provides commands to interact with git. Help text is provided.
  • gitv is a 'gitk clone' plugin.


Git supports using vim diff to resolve merge conflicts

git mergetool -t vimdiff

To make it the default merge tool across all your repos

git config --global merge.tool vimdiff

See alsoEdit

CommentsEdit

Around Wikia's network

Random Wiki