Ⅰ. 插件描述
mercenary.vim: A mercurial wrapper so awesome, you should give it moneyⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'jlfwong/vim-mercenary'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'jlfwong/vim-mercenary'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'jlfwong/vim-mercenary'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/jlfwong/vim-mercenary
Ⅳ. 文档说明
mercenary.vim
I'm not going to lie to you; mercenary.vim may very well be the worst
Mercurial wrapper of all time.
Show and Tell
Here are some screenshots showing off some the mercenary's dirty work:
:HGblame will annotate the current file with the blame.

:HGdiff {rev} will diff the current file against the specified revision.

:HGshow {rev} will show the commit message and diff for the specified
revision.

:HGcat {rev} {path} will show the specified file at the specified revision.

Installation
If you don't have a preferred installation method, I recommend
installing vundle and adding
Bundle 'phleet/vim-mercenary'
to your .vimrc then running :BundleInstall.
If you prefer pathogen.vim, after
installing it, simply copy and paste:
cd ~/.vim/bundle
git clone git://github.com/phleet/vim-mercenary.git
Once help tags have been generated, you can view the manual with:help mercenary.
License
Mercenary is (c) Jamie Wong.
Distributed under the same terms as Vim itself. See :help license.
Heavily inspired by vim-fugitive by Tim Pope:
https://github.com/tpope/vim-fugitive
This started out as a fork of fugitive, but I eventually discovered that the
differences between git and mercurial while minor in functionality are vast in
- So I started from scratch, using fugitive's code as a reference
- re-implementing everything to be less of a monkey patch for mercurial.