原文: http://www.vim.org/scripts/script.php?script_id=1586
| description |
| This script extends Verilog syntax highlighting, which comes along with Vim 6.3, and adds SystemVerilog stuff to it. It will recognize Verilog and SystemVerilog syntax in *.v, *.vh and *.sv files. The new syntax is named as "verilog_systemverilog". If your scripts are loaded correctly, you should see this syntax name when you execute the Vim command ":set syntax?" in your Verilog/SystemVerilog files. |
| install details |
| Untar the package verilog_systemverilog.tar.gz Copy verilog_systemverilog/ftdetect/verilog_systemverilog.vim to your $HOME/.vim/ftdetect directory. Copy verilog_systemverilog/syntax/verilog_systemverilog.vim to your $HOME/.vim/syntax directory. Copy verilog_systemverilog/indent/* to your $HOME/.vim/indent directory. |
在/user/xx/.vim/新建三个文件夹,并把相应的文件复制进去,就可以实现verilog/systemverilog语法的高亮。
如果显示不正确,可以输入命令 ;set syntax?
本文介绍了一个用于Vim的脚本,该脚本扩展了Verilog语法高亮功能并添加了SystemVerilog的支持。安装后,可以在Verilog、VerilogHDL和SystemVerilog文件中实现语法高亮。
2916

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



