The default assembly syntax file didn’t work well and searching the web about gas assembly I found nothing about a gas (AT&T) syntax file for vim. Has anyone found this? I can’t write my own syntax file.
http://img168.imageshack.us/img168/46/nasm.png ft=nasm
http://img160.imageshack.us/img160/5857/asm.png ft=asm(default)
This may get you started. Is that more like what you’re looking for?
Just had a quick search – it looks like there are a few different sorts of assembly syntax highlighting built in. Which one are you using?
Copy-pasted from :help syntax
This additional syntax script is from vim.org
It looks like your screenshot is using the default asm filetype.
Try
and you should get some colour changes as per these screenshots.
From your screenshots above I’ve made a couple of quick modifications to the fasm vim syntax and called it gasm.
It can be found here on pastebin.
Copy and paste that into your personal .vim/syntax or vimfiles/syntax directory and call it gasm.vim
Then in your assembly file :set ft=gasm
This vim script relies on comments being of the form
% comment
with the space included.
You can see this (or change it if you wish) on line 116 of the script.
Please note: Don’t copy the line numbers.