Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1375370
  • 博文数量: 704
  • 博客积分: 10140
  • 博客等级: 上将
  • 技术积分: 6230
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-15 20:41
文章分类

全部博文(704)

文章存档

2013年(1)

2012年(16)

2011年(536)

2010年(151)

分类: C/C++

2011-05-26 10:51:55

Rainbow Parenthesis 它是对嵌套的括号,中括号,大括号等作颜色区分的插件。也很简单,直接把插件下载到本地后,cp到~/.vim/plugin/之后,再到你的颜色脚本(i.e. ~/after/syntax/c.vim)里面增加一行:runtime plugin/RainbowParenthsis.vim 

最后:":so c.vim"

script type
syntax
 
description
This script highlights matching parenthesis with a rainbow of colors. This make it visually very obvious which matches what. Most useful for Lisp.
 
install details
I dropped it into my ~/.vim/plugin directory. This make it show up all the time UNLESS you have syntax highlighting active. (because it's cleared out by the act of loading syntax highlighting) SO you must add a line like 

runtime plugin/RainbowParenthsis.vim 

to the END of your ~/.vim/syntax/lisp.vim file (or the syntax file for whatever language you are using) 
You may also source it directly with :so .



plugin download url:
阅读(1121) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~