björn wrote:
> Hi,
> 
> I have added new commands to Vim (i.e. to ex_cmds.h) and I would like
> them to be properly highlighted when I edit .vim files (e.g. .gvimrc).
>  I looked at runtime/syntax/vim.vim and from a comment therein I
> gather that this file is automatically generated, so I don't dare to
> add my commands "manually".  My question is how do I generate this
> file?  Or can I just add my new commands directly to it?
> 
> Thanks,
> Björn

Auto-generated or not, you should never make alterations directly in any file 
in the $VIMRUNTIME directory tree, because any patchlevel upgrade may 
overwrite your changes with no warning, and when you eventually upgrade to Vim 
7.2 or Vim 8.0, the whole $VIMRUNTIME tree will be re-created from scratch at 
a different location (with a path ending in .../vim72/ or .../vim80/ instead 
of .../vim71/), losing any changes you might have made days, weeks, months or 
even years before.

To make changes to the settings set by any script under $VIMRUNTIME, put them 
in a script of the same name at the same relative place under (Windows) 
~/vimfiles/after or (Unix) ~/.vim/after : so, to make changes to the behaviour 
of $VIMRUNTIME/syntax/vim.vim, place your tweaks in (for example on Unix) 
~/.vim/after/syntax/vim.vim -- that script will be sourced immediately after 
the distributed one, whenever the latter is sourced.

-- and if any of the required directories doesn't yet exist, create it.


Best regards,
Tony.
-- 
All I ask is a chance to prove that money can't make me happy.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui