Ⅰ. 插件描述
Show RGB colors in the VIM sign columnⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'clavery/vim-signcolor'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'clavery/vim-signcolor'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'clavery/vim-signcolor'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/clavery/vim-signcolor
Ⅳ. 文档说明
vim-signcolor
Vim plugin to show RBG color values (#FFFFFF or #FFF) from the current buffer in the "signs" column. Designed to be toggled on/off to quickly find and identify color values, primarily in SASS/LESS/CSS files (although it supports any file type).
Requires:
- VIM 7.x with 'signs' support. Recommended only for gVIM or MacVIM

Usage
Bind a key to the signcolor#toggle_signs_for_colors_in_buffer() function. The following binds it to <leader>q (in my case ,q)
nnoremap <silent> <leader>q :call signcolor#toggle_signs_for_colors_in_buffer()<CR>Use said key to toggle (show/unshow) the colored signs.
Issues
- Currently doesn't support other color representations (HSL, RBGA()), etc.
- Sign symbol, etc should be configurable
Similar Tools
- Inspired by Gutter Colour
- vim-css-color
- vim-gitgutter