Differences between revisions 2 and 3
Revision 2 as of 2008-04-02 22:14:50
Size: 1195
Editor: abuehl
Comment: mercurial -> Mercurial
Revision 3 as of 2009-05-19 19:31:01
Size: 1205
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
Bob Hiestand has developed a [http://www.vim.org/scripts/script.php?script_id=90 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 [http://www.vim.org/scripts/script.php?script_id=1898 Mercurial (and sccs) backend] were then provided by Vladimir Marek.
Bob Hiestand has developed a [[http://www.vim.org/scripts/script.php?script_id=90|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 [[http://www.vim.org/scripts/script.php?script_id=1898|Mercurial (and sccs) backend]] were then provided by Vladimir Marek.
Line 20: Line 20:
 * [http://www.vim.org Vim home page]
 * [http://www.vim.org/scripts/script.php?script_id=90 vim vcscommand plugin (id 90)]
 * [http://www.vim.org/scripts/script.php?script_id=1898 vim mercurial backend plugin (id 1898)]
 * [[http://www.vim.org|Vim home page]]
 * [[http://www.vim.org/scripts/script.php?script_id=90|vim vcscommand plugin (id 90)]]
 * [[http://www.vim.org/scripts/script.php?script_id=1898|vim mercurial backend plugin (id 1898)]]

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)