设置语法高亮显示打开vimrc,添加以下语句来使得语法高亮显示:</ol> syntax on 3. 如果此时语法还是没有高亮显示,那么在/etc目录下的profile文件中添加以下语句: export TERM=xterm-color
参考gvim的help文档输入命令:help mysyntaxfile
MAKING YOUR OWN SYNTAX FILES*mysyntaxfile*
When you create your own syntax files, and you want to have Vim use these
automatically with ":syntax enable", do this:
1. Create your user runtime directory.You would normally use the first item
of the 'runtimepath' option. Example for Unix: >
mkdir ~/.vim
2. Create a directory in there called "syntax". For Unix: >
mkdir ~/.vim/syntax
3. Write the Vim syntax file. Or download one from t
这个需要在vim73\filetype.vim中加入systemverilog类型。打开filetype.vim文件 ,加入下面1句:
"System Verilog,
au BufRead,BufNewFile *.sv,*.sva setf systemverilog,
我记得systemverilog文件类型就是*.sv。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)