vim语法高亮---verilog/systemverilog

来源:互联网 发布:企业域名和价格 编辑:程序博客网 时间:2024/05/01 02:35

原文: http://www.vim.org/scripts/script.php?script_id=1586


descriptionThis 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 detailsUntar 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?



0 0