2012年8月2日星期四

在VIM里实现Verilog和System verilog的语法高亮


作者  Amit Sethi
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.
这个插件实现了对*.v, *.vh and *.sv 文件的语法高亮支持。
 
install details
1. Untar the package verilog_systemverilog.tar.gz
2. Copy verilog_systemverilog/ftdetect/verilog_systemverilog.vim to your $HOME/.vim/ftdetect directory.
3. Copy verilog_systemverilog/syntax/verilog_systemverilog.vim to your $HOME/.vim/syntax directory.
4. Copy verilog_systemverilog/indent/* to your $HOME/.vim/indent directory.
Enjoy!

Windos下的vim一样适用。

没有评论:

发表评论