On 2011-07-09, Magnus Woldrich wrote:
> On 2011-07-09 17:47, Nicholas Cole wrote:
> >I want to add some definitions to one of the standard syntax files.
> >What is the best way to do this.  Obviously, I could copy the whole
> >file and make my changes on a local user copy, but is there a way to
> >read in the default file first and then add some definiations? I've
> >tried searching for this sort of thing, but it looks as if most people
> >start syntax files from scratch.
> 
> You can use the after/ directory; place your definitions in
> $VIMRUNTIME/after/syntax/$filetype.vim for example.

No, don't put them anywhere under $VIMRUNTIME.  $VIMRUNTIME should
contain only files provided by the Vim distribution itself.  If you
want to add files that are available to all users, put them in
$VIM/vimfiles/after/syntax.  If you those files available only to
you, put them in $HOME/.vim/after/syntax or
$HOME/vimfiles/after/syntax, depending on whether you're on a Unix
or Windows system.

Regards,
Gary

-- 
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

Reply via email to