Ⅰ. 插件描述
an SCCS browserⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/brsccs-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/brsccs-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/brsccs-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/brsccs.vim
Ⅳ. 文档说明
It allows you to scroll the history back and forth looking at how the code has changed in a convenient way.
Very helpful if you work with Sun Studio + Vim + TeamWare.
To start browsing an sccs file press ,v
Two windows will pop up: sccs versions and sccs browser.
In the sccs browser you see the text annotated by the version numbers.
Each line has the version number when it has changed the last time.
Press enter in any such line and you jump right to that version.
Press ,< and you jump right "under" that version. I.e. right before
that line was changed.
The plugin tries to track your position in the file so that you stay on the same line when move through the history
enter go to the version that annotation specifies
,v start the SCCS browser
,- go back one version
,+ or ,= go forward one version
,< go one version earlier than the annotation specifies