Tuesday, January 31, 2017

Re: How to set a local syntax file?

Fabio D'Alfonso wrote:
> Hi,
> I am using nasm, and made the change in syntax to nasm in the global
> config, both to highlight and snippets.
> Could you tell me where I could make a local setting?
> Also I am using ti amix/vimrc .
IF: you've taken nasm.vim and modified it, but its a complete syntax
file... put it in $HOME/.vim/syntax
IF: you've just modified a rule or two, added something, and have a
small changes file: put it in $HOME/.vim/after/syntax

I'm not sure what you mean by using it amix/vimrc . If you have a
specific filetype that you want it used on (abc.amix?): in a file called
$HOME/.vim/filetype.vim:

au BufNewFile,BufReadPost *.amix
setf amix

assuming that you've called the syntax file amix.vim .

Regards,
Chip Campbell

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment