不经意在网上看到了vim也有单词高亮的功能,高亮功能对于看源程序很有帮助,于是在linux下做了实验,真的可以,VIM真是太NB了。下面是vim高亮功能的添加具体过程,有兴趣的可以一起来玩玩啊!
1、下载脚本文件
http://www.vim.org/scripts/script.php?script_id=1238
去上面的网站中下载一个mark.vim的脚本文件,因为vim的很多功能都是通过脚本来实现的。
2、添加脚本文件
将mark.vim文件添加到相应路径下,我的是/usr/share/vim/vim71/plugin下,然后重新启动vim即可。具体的安装细节还可以参照这里:
| install details |
| Just drop the script file "mark.vim" into the plugin directory. Restart VIM. If you want to use another leader instead of default "\", you may say in your .vimrc let mapleader = "," That will use ,m ,r ,n instead of \m \r \n as the trigger. If you set any color settings in .gvimrc, you should also add source PATH_OF_PLUGINS/mark.vim to th |

在Linux下,通过vim的脚本功能实现了单词高亮,增强了查看源代码的体验。文章详细介绍了如何下载并添加mark.vim脚本,以及如何在vim中使用此功能。
最低0.47元/天 解锁文章
5728

被折叠的 条评论
为什么被折叠?



