Does anybody know of a good ASP.NET syntax file for VIM? Where? I tried :set filetype=xml, and it was ok, but it does not work on some things like, <%-- --%> comments.

link|improve this question
If you post the constructs that are lacking, either from the xml or aspnet.vim versions, I'd be happy to work on that. I have a bit of experience writing syntax files, and that would be handy to me. – Jay Jan 28 '11 at 4:42
@Jay I found aspnet.vim, and it is working quite well. I have not found anything lacking from it yet, but then again have not used it too much, yet. If you come up with something better, or take my answer and expound on it, I would gladly mark it as the accepted answer. – kzh Jan 28 '11 at 14:15
feedback

2 Answers

I have found aspnet.vim, but it is from 2002. I have no idea if it supports any newer syntax/features.

Directions:

  1. Put this syntax file in your $VIMDIR/syntax direcotry.
  2. When opening aspx, asmx, or ascx files, :set syntax=aspnet.
link|improve this answer
Correction- syntax name is "aspnetcs" – Jason Mar 9 '11 at 17:13
feedback

There appears to be a newer ASP.NET syntax file (last updated 2007) here: aspnetcs

It looks like all you need to do to install it is unpack the tar in the ~/.vim directory, where ~ is your home directory.

Ex: /home/username/.vim/

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.