vbnet.vim : Syntax highlighting for VB.NET
script karma |
Rating 182/98,
Downloaded by 5186 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Tim Pope |
|
script type |
syntax |
|
description |
Although VB.NET is really just a new version of VB, the differences seemed large enough to warrant new syntax highlighting. Nonetheless, this file aims to be backwards compatible with classic VB, although some deprecated VB syntax may be flagged as an error.
Folding is supported. Try ":set foldmethod=syntax".
I haven't done any VB since that one semester in college. I'd appreciate someone taking over this file and submitting it to be included in Vim. I believe it to be a rename and :%s/vbnet/vb/g away from being a far superior replacement for the vb.vim included with Vim, but it is terrible at VBScript, which vb.vim also handles.
|
|
install details |
Copy vbnet.vim to your syntax directory (.vim/syntax or vimfiles/syntax in your home directory). To activate it, use the command ":set ft=vbnet".
The following autocmd can be added to your vimrc to automatically set the filetype (and activate syntax highlighting) for all VB.NET files.
autocmd BufNewFile,BufRead *.vb set ft=vbnet |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 142.132.191.50
|