how can I change the syntax used for certain file types?
I want .asm files to use the nasm syntax
|jcsmith||hi all, is there anyway to put something in my .vimrc to create my backups and tmp directories if they don't exist?|
!mkdir -p ~/tmp/
|yuriks||any way to patch one line of a syntax file, or do I need to copy the entire syntax to my home and edit it there?|
I want to change
HiLink nasmLocalLabel Identifier
HiLink nasmLocalLabel Specia
|praetis||numbah: you do realize that after inserting a blank line with o<Esc> you can repeat that with the period '.' key...|
|praetis||keybindings are really only useful for cutting down keystrokes in repetitive tasks, but in this case you can't really cut that down any further ;)|
|numbah||just do not see the usefulness of a shorter set of commands though|
but if you need to repeat then..
|praetis||oh whoops, I meant to send that to masterdriverz|
masterdriverz: you do realize that after inserting a blank line with o<Esc> you can repeat that with the period '.' key...
|yuriks||hmm, if I put a file in ~/.vim/syntax/after/nasm.vim|
it should execute that too after it load the nasm.vim syntax, uh?
|praetis||trying it is a quick way to find out|
|yuriks||it isn't for me|
|yuriks||well, at least it's not doing anything|
but maybe my file has an error
|action||yuriks adds a debug echo|
|yuriks||adds a debug echo|
|praetis||put in a command at the beginning of the file that you know works to find out|
|yuriks||echo "HELLO THERE HOW ARE YOU JUST IFNE UH?"|
|praetis||yeah that'd work|
|yuriks||hmm, I added a "q" and it didn't work =||
|praetis||I guess that's the answer then|
I would have been surprised if it did work
|yuriks||the manual lies =P|
|praetis||where's it say that?|