Rainbow Parentheses Improved : help you read complex code by showing diff level of parentheses in diff color !!
| script karma |
Rating 94/33,
Downloaded by 880
|
Comments, bugs, improvements
|
Vim wiki
|
| created by |
| luo chen |
| |
| script type |
| utility |
| |
| description |
插件描述:
As everyone knows, the most complex codes were composed of a mass of different kinds of parentheses. This plugin will help you read these codes by showing different levels of parentheses in different colors.
众所周知,最复杂的代码都是由一堆乱七八糟的括号组成。这款插件通过以不同的颜色展示不同层次的括号,致力于帮助你阅读这样的复杂代码。
See the effect : click the "Vim wiki" above
你可以通过点击该页面右上方的“Vim wiki”链接,查看插件效果截图。
This plugin is very easy to install , you can follow the "install details" in lower part of this page .
这个插件的安装非常容易,你可以跟随页面下方“安装说明”中的步骤进行。
========================================================================================================
What is improved ?
有哪些改进?
* separately edit guifgs and ctermfgs (the colors used to highlight)
现在你可以分别自定义图形界面下和终端上所使用的各种括号颜色(因为以前的版本是必须对应地更改相应的颜色)
* now you can design your own parentheses such as 'begin' and 'end' . (you can also design what kinds of parentheses to use for different filetypes. )
现在你可以自定义括号的形式,不过在这之前你最好了解vim脚本的正则表达式。你甚至可以为不同类型的文件定义不同的括号。
* now you can even decide to let some operators (like + - * / , ==) hilighted with the parentheses together, you can also decide this seprately for different type of files.
现在你甚至可以决定是否让某些符号跟着它们所在的括号一起高亮,你也可以对不同类型的文件分别设置。
* no limit of parentheses levels.
现在的版本将不再限制括号的嵌套层数。
* smoother and faster. (linear time complexity)
更快速和流畅的体验。
* the code is shorter and easier to be read now. (shorter than 100 lines)
现在该插件的源代码更简短,并且更加可读。
* the last , but not the least , the chinese statement is added as you see.
最后但并非不重要的一点是,如你所见,现在增加了中文说明。 (当然,主要是考虑到我个人推广的对象更容易接受中文的说明)
========================================================================================================
Get Old Versions:
以下是本插件所参考的旧版本:
http://www.vim.org/scripts/script.php?script_id=1561
http://www.vim.org/scripts/script.php?script_id=3772
Old Versions' Author:
以下是旧版本的作者们,感谢他们!
Martin Krischik (krischik@users.sourceforge.net)
John Gilmore
Luc Hermitte (hermitte@free.fr)
anonym
This Versions' Author:
以下是这个版本的作者,有问题可以找这货
Luo Chen (luochen1990@gmail.com)
The Last , give this script a rate if you like it , and i'll appreciate it and improve this plugin for you because of your support ! (just choose 'Life Changing' and click 'rate' from below)
最后,如果你喜欢这个插件,给它一个评价,我会心存感激,并且因为你的肯定继续改进这个插件!(从页面下方,选择Life Changing选项,然后点击rate) |
| |
| install details |
安装说明:
First, put the rainbow.vim to dir vim73/plugin or vimfiles/plugin (if exists one, the latter is recommended)
首先,将下载到的 rainbow.vim 文件放到 vim73/plugin 文件夹(或者 vimfiles/plugin 文件夹)中。
Second, add the follow sentences to your .vimrc or _vimrc :
然后,将以下句子,加入到你的vim配置文件中(windows下配置文件是_vimrc,而linux下是.vimrc)
let g:rainbow_active = 1
let g:rainbow_operators = 1
Third, restart your vim and enjoy coding.
最后,重新启动你的vim,你就可以享受coding了。
Read the source file for Advanced Configuration.
阅读脚本中的说明部分,你可以进行该插件的高级配置。 |
| |
script versions (upload new version)
Click on the package to download.
| rainbow.vim |
2.51 |
2012-11-18 |
7.3 |
luo chen |
* added a shorter command :Rainbow instead of :RainbowToggle to toggle it
* comment updated |
| rainbow.vim |
2.5 |
2012-11-10 |
7.3 |
luo chen |
*!! now you can choose to add operators which will be hilighted with the parentheses they are contained.
(现在你可以允许一些符号跟着包含它们的括号一起高亮)
*you can also config it separately for each type of file.
(你也可以根据文件类型分别设置哪些符号将同时被高亮) |
| rainbow.vim |
2.41 |
2012-10-27 |
7.3 |
luo chen |
*updated the advanced configuration demo of 2.4
*a little change of code |
| rainbow.vim |
2.4 |
2012-10-23 |
7.3 |
luo chen |
*higher priority of syntax definition.
*now you can define the parentheses used for each type of file separately.
*script details about configuration updated. |
| rainbow.vim |
2.3 |
2012-09-09 |
7.3 |
luo chen |
* you can use global variables to set this plugin now . which makes it easier to make your vimrc portable . (read the comment in the rainbow.vim to know more) |
| rainbow.vim |
2.2 |
2012-09-03 |
7.3 |
luo chen |
*bug fixed: now your own syntax highlighting won't be covered .
*changed colors: now 5 colors is reserved . |
| rainbow.vim |
2.1 |
2012-08-22 |
7.3 |
luo chen |
* now you needn't to set the max levels of parentheses. It can automatically use the colors circularly. (and the time complexity is linear dependent on the number of colors) |
| rainbow_parentheses.vim |
2.01 |
2012-08-22 |
7.3 |
luo chen |
*fixed the bug of RPToggle of version 2.0 , now called RainbowToggle |
| rainbow_parentheses.vim |
2.0 |
2012-08-21 |
7.3 |
luo chen |
*smoother and can be deeper.
*now you can design your own parentheses like 'begin..end'.
*separately edit guifg and ctermfg now, which makes config easier
*shorter code and simpler document.
*added a command : RPToggle |
| rainbow_parentheses_improved.zip |
1.01 |
2012-08-17 |
7.3 |
luo chen |
1. no global variable used. (不再使用全局变量进行设置)
2. fixed the bug of treating '<' and '>' as brackets even don't need to highlighting them.(修正关于大于号、小于号的bug)
3. simple configuration.(现在设置更简单)
4. completed document.(现在有完整的文档帮助进行更详细设置) |
ip used for rating: 54.234.67.55
|