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

Hi,

 

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?

 

Thanks

Link to comment
Share on other sites

Hi,

 

 

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
 

 

BR,

Babak

Link to comment
Share on other sites

On 11/26/2014 at 12:40 AM, skhanna said:

Hi,

 

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?

 

Thanks

You can just try 

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

 2) added the following in .gvimrc ->  so ~/.vim/syntax/verilog_systemverilog.vim

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...