Tuesday, October 19, 2010

Editing verilog file in vim

I am trying to use (g)vim to edit verilog files. I see proper syntax
highlighting, but keyword matching (for example, 'begin' is supposed
to match with 'end') is not working. I read up some of the earlier
posts in this group regarding usage of vim for verilog, but can't seem
to find the solution. Can someone please help me get vim working for
verilog files? I am using vim version 7.2. I do see the file
verilog.vim in ftplugin directory. This is what my .vimrc file looks
like.

set nocompatible
filetype indent plugin on
syntax on
set hidden
set wildmenu
set showcmd
set hlsearch
set ignorecase
set smartcase
set backspace=indent,eol,start
set autoindent
set nostartofline
set ruler
set laststatus=2
set confirm
set visualbell
set t_vb=
set mouse=a
set cmdheight=2
set number
set notimeout ttimeout ttimeoutlen=200
set pastetoggle=<F11>
set shiftwidth=2
set softtabstop=2
set expandtab
map Y y$
nnoremap <C-L> :nohl<CR><C-L>


Also, from a more general standpoint, when we are trying to use a new
filetype/language in vim (like verilog), what are the different
features/plugins that we need to make sure are available? For example,
it should have syntax highlighting, keyword matching, etc.. and what
else? And where are the plugins for these features usually located?

Thanks!

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: