Differences between revisions 3 and 8 (spanning 5 versions)
Revision 3 as of 2009-05-19 19:31:01
Size: 1205
Editor: localhost
Comment: converted to 1.6 markup
Revision 8 as of 2014-04-22 17:36:37
Size: 1363
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
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.
There is a number of plugins for interacting with mercurial. You may find them on the page that lists [[OtherTools]]. Here are a few notable ones.
Line 7: Line 5:
The last one is likely to be more actively developed in a near future, and is described hereafter. == VCSCommand ==
Line 9: Line 7:
== Vim VCS Mode and Mercurial == Bob Hiestand has developed a [[http://www.vim.org/scripts/script.php?script_id=90|vim plugin]] called VCSCommand useful for manipulating files controlled by CVS, SVN and SVK within VIM, including committing changes and performing diffs using the vimdiff system. It was later extended to support other VCS software, including Mercurial (since version 1.99.31 posted on 21 July 2009).
Line 11: Line 9:
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.
After installing the plugin, you may use it to add, remove, commit, annotate, view older versions, changes (as a diff or in a vimdiff split) of files; update directory state and view log.
Line 14: Line 11:
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)

== Lawrencium ==

LudovicChabant has written another [[http://www.vim.org/scripts/script.php?script_id=3861|vim plugin]] called Lawrencium, specifically for Mercurial. It supports all the basic workflows you would expect, along with a few more advanced ones. You can find more information on the [[http://bolt80.com/lawrencium/|Lawrencium home page]].
Line 20: Line 18:
Line 21: Line 20:
 * [[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/scripts/script.php?script_id=90|VCSCommand plugin (id 90)]]
 * [[http://www.vim.org/scripts/script.php?script_id=3861|Lawrencium plugin (id 3861)]]

Vim and Mercurial

There is a number of plugins for interacting with mercurial. You may find them on the page that lists OtherTools. Here are a few notable ones.

VCSCommand

Bob Hiestand has developed a vim plugin called VCSCommand useful for manipulating files controlled by CVS, SVN and SVK within VIM, including committing changes and performing diffs using the vimdiff system. It was later extended to support other VCS software, including Mercurial (since version 1.99.31 posted on 21 July 2009).

After installing the plugin, you may use it to add, remove, commit, annotate, view older versions, changes (as a diff or in a vimdiff split) of files; update directory state and view log.

Lawrencium

LudovicChabant has written another vim plugin called Lawrencium, specifically for Mercurial. It supports all the basic workflows you would expect, along with a few more advanced ones. You can find more information on the Lawrencium home page.

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