Differences between revisions 3 and 4
Revision 3 as of 2009-05-19 19:31:01
Size: 1205
Editor: localhost
Comment: converted to 1.6 markup
Revision 4 as of 2011-03-31 08:39:20
Size: 1228
Comment:
Deletions are marked like this. Additions are marked like this.
Line 22: Line 22:
 * [[http://www.vim.org/scripts/script.php?script_id=1898|vim mercurial backend plugin (id 1898)]]  * --([[http://www.vim.org/scripts/script.php?script_id=1898|vim mercurial backend plugin (id 1898)]])-- no longer needed

Vim and Mercurial

Two plugins exists nowadays to interact with Mercurial within vim.

  1. The hgcommand.vim plugin in the contrib directory of Mercurial,

  2. The vcscommand plugin with its Mercurial backend.

The last one is likely to be more actively developed in a near future, and is described hereafter.

Vim VCS Mode and Mercurial

Bob Hiestand has developed a vim plugin useful for manipulating files controlled by CVS, SVN and SVK within VIM, including committing changes and performing diffs using the vimdiff system. A Mercurial (and sccs) backend were then provided by Vladimir Marek.

After installing the plugin and backend, you may use the following main mappings and commands :

  • :VCSCommit (<Leader>cc mapping)

  • :VCSAdd (<Leader>ca mapping)

  • :VCSVimDiff (<Leader>cv mapping)

VimVcsPlugin (last edited 2014-04-22 17:36:37 by LudovicChabant)