
Maciej Witkowiak <ytm@elysium.pl
16.04.2001

6502 ASSEMBLER SYNTAX FILE FOR VIM

These files allow to have colored source files with 6502 assembly code.
Filetype is recognized only by extension - .tas or .TAS
Syntax tries to color common assembler instructions like .byte, .word etc.
It is also compatible with ACME.

INSTALLATION

Copy files into proper places (~/vim or ~/$CONFIG_DIR/vim, I use CONFIG_DIR=.etc,
so whole that stuff goes to ~/.etc/vim which is a very nice way to have many
configuration files in one place, not necessarily on top of your home directory).

Add contents of .vimrc to the beginning of your ~/.vimrc

For unknown reasons my VIM couldn't read filetype info (seems that .vimrc is not
sourced before loading /usr/share/vim/filetype.vim), so I had to manually change
some lines there.
Replace:

" Source the user-specified filetype file
if exists("myfiletypefile") && file_readable(expand(myfiletypefile))
  execute "source " . myfiletypefile
endif

by:

" Source the user-specified filetype file
 if filereadable(expand("~/$CONFIG_DIR/vim/myfiletype.vim"))
  execute "source " . "~/$CONFIG_DIR/vim/myfiletype.vim"
endif

Do this after testing, maybe you don't have to do it.

Have fun. Please send me any modifications/comments.

ytm
