editing crontab with vim and using .vimrc

Hi

since we migrated from Solaris 8 to Solaris 10 I do miss a nice feature when editing crontab with vim editor: no more color highlighting after starting to edit. Well there is a hack, see below.

I did define:
export EDITOR='vim -c ":source /export/home/duc904/.vimrc"'

Under Sol8 when starting to edit crontab I did get automatically the entries highlighted with colors I did define in .vimrc .

Under Sol10 this direct way is no longer possible(?)

I have to start editing crontab:
$ crontab -e

and then in CLI mode I enter:
:source /export/home/duc904/.vimrc
and the highlighting is available.

any ideas what I have to change additionally so I do not have to source .vimrc separately?

Thanks and regards,
duc904

Why are you doing that? :confused:
export EDITOR=vi

will do

Hi incredible

sure I can be using vi or vim:

export EDITOR=vi
or
export EDITOR=vim

depending on personal flavours. This works so far fine.

I more wondering why the hell I cannot more source the .vimrc file directly.

any ideas?

bye
duc904