sponsor Vim development Vim logo Vim Book Ad

systemverilog.vim : Indent & syntax script for Verilog and SystemVerilog

 script karma  Rating 486/211, Downloaded by 15491  Comments, bugs, improvements  Vim wiki

created by
Nachum Kanovsky
 
script type
indent
 
description
Latest version 1.12 - download from GitHub

This script is maintained on github at:
https://github.com/nachumk/systemverilog.vim
 
install details
VIM 8 Install:

Install by cloning repository:

git clone git://github.com/nachumk/systemverilog.vim ~/.vim/pack/systemverilog.vim

VIM 7 Install:

VIM 7 doesn't have a native package management system. Using pathogen is recommended.

Pathogen Install (will enable VIM 8's directory structure of 'pack' instead of 'bundle' in VIM 7 - make sure Pathogen is updated as well)

https://github.com/tpope/vim-pathogen

Install by cloning repository:

git clone git://github.com/nachumk/systemverilog.vim ~/.vim/pack/systemverilog.vim

My .vimrc:

"Enable matchit
runtime macros/matchit.vim
if v:version < 800
    "Start pathogen
    execute pathogen#infect()
endif
"Turn on syntax highlighting
syntax on
"Enable filetype detection
filetype plugin indent on
"Enable folding based on indent (on 8.0 and greater versions)
if v:version >= 800
    set foldmethod=indent
    set foldnestmax=10
    set nofoldenable
    set foldlevelstart=10
endif
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
systemverilog.vim-1.12.tar.gz 1.12 2021-07-30 7.0 Nachum Kanovsky Update to VIM 8\\'s package management system (also compatible with the latest Pathogen if using VIM 7)
systemverilog.vim-1.11.3.tar.gz 1.11.3 2021-07-29 7.0 Nachum Kanovsky Fix matchit with `ifdef and else fixes
systemverilog.vim-1.11.2.tar.gz 1.11.2 2021-07-29 7.0 Nachum Kanovsky Improve string conversion to handle escaped quotes.
systemverilog.vim-1.11.1.tar.gz 1.11.1 2021-07-29 7.0 Nachum Kanovsky Fix greedy string conversion.
systemverilog.vim-1.11.tar.gz 1.11 2021-07-29 7.0 Nachum Kanovsky Add missing keywords, and improve overall indenting
systemverilog.vim-master.zip 1.9 2021-05-13 7.0 Nachum Kanovsky Latest from GitHub
systemverilog.vim-master.zip 1.9 2019-11-22 7.0 Nachum Kanovsky Fix indent for SVA properties.
Improve syntax support.
systemverilog.1.7.zip 1.7 2018-03-28 7.0 Nachum Kanovsky Comments handled properly - see GitHub for details.
systemverilog.vim-1.5.tar.gz 1.5 2017-03-12 7.2 Nachum Kanovsky Fix matchit support - thank you Felipe Gonçalves Assis
Fix number highlighting
systemverilog.1.3.tar.gz 1.3 2014-01-29 7.0 Nachum Kanovsky Ignores keywords in single line strings. Eg: If a string contained the word 'end' it would mis-indent.
systemverilog.1.2.tar.gz 1.2 2014-01-29 7.0 Nachum Kanovsky Added in 'z' and 'x' for number highlighting.
Added in missing operators for highlighting - Thanks to Eugene Mikhantiev.
systemverilog.1.1.tar.gz 1.1 2014-01-17 7.0 Nachum Kanovsky Improved case statement highlighting.
eg: label1, label2, label3: ...
will now highlight properly.
systemverilog.1.0.tar.gz 1.0 2013-11-13 7.0 Nachum Kanovsky Fixed incorrect highlighting of numbers and times.
systemverilog.0.9.tar.gz 0.9 2013-11-12 7.0 Nachum Kanovsky Fixed syntax highlighting for case and possibly other keywords messed up by the existence of svIdentifier.
systemverilog.0.8.tar.gz 0.8 2013-10-25 7.0 Nachum Kanovsky Fixed assume property indent.
systemverilog.0.7.tar.gz 0.7 2013-10-25 7.0 Nachum Kanovsky Fixed issue with assert and cover property statements causing indent.
systemverilog.0.6.tar.gz 0.6 2013-10-25 7.0 Nachum Kanovsky Added a bunch of additional keywords to syntax script. Supports property, sequence, covergroup, etc...
systemverilog.0.5.tar.gz 0.5 2013-10-24 7.0 Nachum Kanovsky Added in syntax highlighting
Indent with ( as well
Added in headers
systemverilog.0.4.tar.gz 0.4 2013-10-07 7.0 Nachum Kanovsky oops, forgot to uncomment finish lines in load checks
systemverilog.0.3.tar.gz 0.3 2013-10-07 7.0 Nachum Kanovsky Added in { and }.
systemverilog.0.2.tar.gz 0.2 2013-10-07 7.3 Nachum Kanovsky Added support for pure functions.
systemverilog.tar.gz 0.1 2013-10-07 7.0 Nachum Kanovsky Initial upload
ip used for rating: 3.141.8.247

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github