Ⅰ. 插件描述
A vim plugin that highlights marks with different colors so you know where they are.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'tumbler/highlightmarks'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'tumbler/highlightmarks'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'tumbler/highlightmarks'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/tumbler/highlightmarks
Ⅳ. 文档说明
Highlight Marks
A vim plugin that highlights marks with different colors so you know where they are.
There are two global variables that you can specify to control the highlight coloring.
g:highlightMarks_colorscontrols what colors the gui displays and takes a list of colors (Names or RGB hex strings).g:highlightMarks_cterm_colorscontrols what colors the terminal displays and takes a list of numbers.
Another is option is to use "signs" instead of text highlighting.
Pros:
- Highlights whole line
Cons:
- Has the possibility to get "de-synced" with marks
- Creates an ugly column to the left of your code
To use signs define g:highlightMarks_useSigns as 1.
There is also a command to get rid of the highlighting if starts annoying you: :RemoveMarkHighlights. With no arguments it will clear all mark highlighting. If you give a list of characters, it will clear the highlighting for the specified marks only.