|
|
一个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, 想让所有类高亮显示。
结果不行。 |
|