sponsor Vim development Vim logo Vim Book Ad

vbnet.vim : Syntax highlighting for VB.NET

 script karma  Rating 173/92, Downloaded by 3226    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
 

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
vbnet.vim 1.7 2006-04-28 6.0 Tim Pope Fixed bugs reported by John Lenz
vbnet.vim 1.4 2006-04-23 6.0 Tim Pope Initial upload
ip used for rating: 54.81.75.69

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.
   
SourceForge.net Logo