Re: Why is after/colors/colorscheme.vim disabled?

2006-08-20 Thread A.J.Mechelynck

Peter Hodge wrote:

Hello,

I am just curious as to why after/colors/ scripts are disabled instead of
behaving like after/ftplugin and after/syntax scripts?

regards,
Peter


I'm not sure if it's a bug or a feature, but

:colorscheme foobar

works like

:runtime colors/foobar.vim

with no exclamation mark after :runtime. To use 
~/.vim/colors/foobar.vim as a user addition to 
$VIMRUNTIME/colors/foobar.vim, invoke it with


:runtime! colors/foobar.vim

(with exclamation mark) instead. You might even want to define a 
user-command


:command ColorScheme -nargs=1 runtime! colors/args.vim

See
:help :runtime


Best regards,
Tony.


Re: Why is after/colors/colorscheme.vim disabled?

2006-08-20 Thread Edward L. Fox

On 8/21/06, A.J.Mechelynck [EMAIL PROTECTED] wrote:

Peter Hodge wrote:
 Hello,

 I am just curious as to why after/colors/ scripts are disabled instead of
 behaving like after/ftplugin and after/syntax scripts?

 regards,
 Peter

I'm not sure if it's a bug or a feature, but


Every bug is a feature. :-)



:colorscheme foobar

works like

:runtime colors/foobar.vim

with no exclamation mark after :runtime. To use
~/.vim/colors/foobar.vim as a user addition to
$VIMRUNTIME/colors/foobar.vim, invoke it with

:runtime! colors/foobar.vim

(with exclamation mark) instead. You might even want to define a
user-command

:command ColorScheme -nargs=1 runtime! colors/args.vim

See
:help :runtime


Best regards,
Tony.