Ⅰ. 插件描述
Define a background color for your vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/backgroundcolor-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/backgroundcolor-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/backgroundcolor-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/BackgroundColor.vim
Ⅳ. 文档说明
BackgroundColor.vim only works, if your vim is compiled with signs-support. If it is, you can use signs, to define a background color for your text.
This plugin defines these Commands:
:Red Color the selected Range red
:White Color the selected Range white
:Yellow Color the selected Range yellow
:Blue Color the selected Range blue
:Green Color the selected range Green
:Black Color the selected range Black
:Custom1
:Custom2
Color the selected range with your defined Color1 or 2
Those 2 commands are only defined, if you have specified a color for this command.
You can define a custom color using the 2 variables g:bg_color_custom1 and g:bg_color_custom2
:Clear Clear the selected range
:ClearAll Clear the whole buffer of all background colors.
All commands (excep :ClearAll, which only uses the whole buffer) accept a range, on which they operate. So you can use, e.g. :%Red to color the whole buffer red.
I am not sure if this is really useful, but in case you find it usefull, please rate this plugin.