Ⅰ. 插件描述
Vim plugin to work with mercurial repositoriesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'dgsuarez/thermometer'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'dgsuarez/thermometer'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'dgsuarez/thermometer'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/dgsuarez/thermometer
Ⅳ. 文档说明
Readme
Thermometer is a vim plugin for mercurial users.
Available commands are:
Hgstatusto open a quickfix window with changes to the repositoryHgresetto reset status & rev dataHgdiffto diff the current buffer with its last version on the repository, or with a particular revision if a revision number is provided. Hgdiffoff will close the diff and return to normal mode.Hglogto show a file's log, or, if no file is being edited, the full log. Can receive an optional parameter to limit the number of commits shown.Hgblameto show blame information for each line.Hgsummaryto show a summary of the working dir
The plugin also provides functions to be used in statuslines, e.g. in your vimrc:
set statusline+=%{g:HgStatusLine()}
For more information take a look at the documentation.