Ⅰ. 插件描述
A vim plugin to highlight variables and functions, which is what you should realy look at!Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'ferranpm/vim-colorcode'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'ferranpm/vim-colorcode'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'ferranpm/vim-colorcode'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/ferranpm/vim-colorcode
Ⅳ. 文档说明
# Colorcode
Inspired by this post, this plugin aims to do exactly this. It reads the tags file in your working directory and adds a match for each tag.
Installation
Using Pathogen, run the following commands:
% cd ~/.vim/bundle % git clone https://github.com/ferranpm/vim-colorcode
Usage
This plugin will only work if tags files are in your working directory.
It only loads if it finds at least one tags file.
After that, each time the file is saved, ctags is called and file gets repainted.
To disable this plugin use let g:colorcode_enable=0
Screenshots
Screenshot of a simple program with syntax off and let g:colorcode_global=0
...with let g:colorcode_global=1 option
ToDo
- [ ] Make it respect other colorschemes
- [ ] Make it work on light backgrounds
- [ ] Make it faster (specially with
g:colorcode_global=0) - [ ] Add gvim support
- [ ] Check if a tag is from the same filetype (a python tag should not appear in a vim script)