Jump to content

vim syntax highlighting file for Verilog, Systemverilog and UVM

About This File

 This file, when sourced via your .vimrc file, highlights the HDL (Verilog, SystemVerilog) and Methodology layer (UVM) keywords in the vim editor. 

User Feedback

Recommended Comments



I am unable to get this working. Below are the setps I did:

1) downloaded the file and copied it to : ~/.vim/syntax/verilog_systemverilog.vim

 2) added the following in .gvimrc ->  au BufNewFile,BufRead *.sv,*.svh,*.vh,*.v so ~/.vim/syntax/verilog_systemverilog.vim


Is there anything else i need to do?

The comments int he file say , It Requires $VIMRUNTIME/syntax/verilog.vim to exist.

How do I set the variable and what should verilog.vim contain?



Share this comment

Link to comment
Share on other sites




Since my last post, I still have some problems with this.

The problem happens when I've opened a few files with .sv and .svh extension in gvim.

After switching a few times between the files from 'Buffers' menu in gvim,

I lose the highlights.


This is what I have in .vimrc:


esekilxxen510 [11:06] [verif/xbabzak/sim_dl] -> cat ~/.vimrc
au BufNewFile,BufRead *.sv,*.svh,*.vh,*.v so ~/.vim/syntax/verilog_systemverilog.vim
set backspace=2
set hlsearch
set nu




Share this comment

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now