Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cleaned up Verilog/SystemVerilog matching. Adds another extension.

  • Loading branch information...
commit 3b6fe7cdc80bc6aa0077c054cc8c70e19a1973d4 1 parent 2c45f0c
Nick Jones authored
Showing with 5 additions and 8 deletions.
  1. +5 −8 vimrc
View
13 vimrc
@@ -30,9 +30,12 @@ endif
set wildmenu " Show list instead of just completing
set wildmode=list:longest,full " command <Tab> completion
-" Patch systemverilog.vim to match filenames
+" Add various extensions for Verilog and SystemVerilog
augroup filetypedetect
- au BufNewFile,BufRead *.sv setf systemverilog
+ au BufRead,BufNewFile *.v,*.vh,*.tpl setfiletype verilog
+ au BufRead,BufNewFile *.v,*.vh,*.tpl set expandtab tabstop=4 softtabstop=2 shiftwidth=2
+ au BufRead,BufNewFile *.sv,*.svi,*.svh set filetype=verilog_systemverilog
+ au BufRead,BufNewFile *.sv,*.svi,*.svh set expandtab tabstop=4 softtabstop=2 shiftwidth=2
augroup END
" Execute open rspec buffer
@@ -59,12 +62,6 @@ nmap <F8> :TagbarToggle<CR>
" mode.
inoremap jk <Esc>
-" System Verilog syntax matching
-autocmd BufRead,BufNewFile *.v,*.vh setfiletype verilog
-autocmd BufRead,BufNewFile *.v,*.vh set expandtab tabstop=4 softtabstop=2 shiftwidth=2
-autocmd BufRead,BufNewFile *.sv,*.svi set filetype=verilog_systemverilog
-autocmd BufRead,BufNewFile *.sv,*.svi set expandtab tabstop=4 softtabstop=2 shiftwidth=2
-
" Presentation colors and config
" (http://vim.devth.com/?tag=colorscheme)
function! PresentationMode()
Please sign in to comment.
Something went wrong with that request. Please try again.