本文主要是介绍vim语法高亮---verilog/systemverilog,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
原文: 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的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!