LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 672|回复: 1

请高人指教,怎么用javaid.vim

[复制链接]
发表于 2005-1-7 15:06:33 | 显示全部楼层 |阅读模式
一个javaid.vim,可以高亮显示类,下载自 http://www.fleiner.com/vim/download.html

以下是版本及使用说明:
" URL:          http://www.fleiner.com/vim/syntax/javaid.vim
" Last Change:  2001 May 2
"
" Updated on:   2004 Nov 9
" by:           Devin Crain
" Added:        java.nio.*, java.nio.channels,*, java.nio.charset.*
"               java.utils.prefs.*, java.utils.logging.*, java.utils.regex.*,
"               java.applet.*, javax.crypto.interfaces.*, javax.crypto.spec.*,
"
" Updated:      java.net.*, java.awt.*, java.awt.dnd.*, java.awt.event.*,
"               java.awt.font.*, java.awt.geom.*, java.awt.image.*,
"               java.awt.image.renderable.*, java.security.*,
"               java.security.cert.*, java.security.interfaces.*,
"               java.security.spec.*, java.sql.*, java.text.*, java.utils.*,
"               javax.accessibility.*, javax.crypto.*,
"
"

" This file is not a standalone script, but needs the 'real' java.vim
" script. It expands it by also highlighting all known java ids of the
" standard java classes.
"
" To use it download the file and store it in the same directory as the
" java.vim file. Then you need to either define the variable
" java_highlight_all or the one for the package you want to highlight
" in your vimrc file. For example: if you want to highlight java.io use
"   :let java_highlight_java_io=1




usr/share/vim/syntax/ 下已有java.vim,并且将javaid.vim也复制到此目录下。
将usr/share/vim/ 下的 vimrc_example.vim 复制到 ~/ 下,并重命名为.vimrc。
vi .vimrc ,在最后加上 let java_highlight_all=1, 想让所有类高亮显示。
结果不行。
 楼主| 发表于 2005-1-7 23:43:40 | 显示全部楼层
已解决,原来是将highlight打成hightlight,英语没学好....
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表