Jump to content

Photo

Vim syntax highlighting for Atasm

vim syntax highlighting syntax atasm highlighting

2 replies to this topic

#1 ivop ONLINE  

ivop

    Dragonstomper

  • 797 posts
  • Location:The Netherlands

Posted Mon Nov 19, 2012 10:18 AM

See subject. Put m65.vim in $HOME/.vim/syntax (create the directory if necessary) and add the following to your .vimrc file

augroup filetype
au! BufRead,BufNewFile *.m65	 set filetype=m65
augroup END

Attached Files



#2 Creature XL OFFLINE  

Creature XL

    Dragonstomper

  • 904 posts
  • Location:Hannover.De

Posted Mon Nov 19, 2012 10:30 AM

See subject. Put m65.vim in $HOME/.vim/syntax (create the directory if necessary) and add the following to your .vimrc file

augroup filetype
au! BufRead,BufNewFile *.m65	 set filetype=m65
augroup END


Thanks for your work. Not that I have direct use for it, but I can use it as a basis for ca65.
ATM I am content with the standard "asm" syntax in VIM, however, making a perfect one for ca65 will be much better.

If you are interested, I have started some month ago a script to fold ".ifdef" statements. Was my first attempt in VIM scripting. I may look into improving it :)

I am really interested in how many use VIM for coding Atari-stuff. I am well aware that we have lots of coders using WUSDN, so VIM users stand up!

#3 ivop ONLINE  

ivop

    Dragonstomper

  • Topic Starter
  • 797 posts
  • Location:The Netherlands

Posted Mon Nov 19, 2012 12:06 PM

Thanks for your reaction! Here's an updated version already. I have simplified some regexps and added string constants.

As for .ifdef folding, I do not really like to hide code out of view, but I imagine there are other people that might be interested in your script.

Regards,
Ivo

Attached Files







Also tagged with one or more of these keywords: vim, syntax highlighting, syntax, atasm, highlighting

0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users