On 2009-11-11, Bu Rak wrote:
>
> 2009/11/11 Matt Wozniski <[email protected]>
> On Wed, Nov 11, 2009 at 5:10 AM, Bu Rak wrote:
> > I want to know is there a way to make vim "not" source .cshrc file when
> > gvimdiff is used...
> vim should never source a .cshrc file. I would assume that you're
> actually seeing something wrong in your environment because the csh
> that you launched gvim from sourced .cshrc.
> Actually I am running the "gvimdiff" command directly (no csh wrapper).
Yes, but I think vim uses what it determines to be your shell (e.g.,
$SHELL) to launch diff. Such a shell normally runs in
non-interactive mode in which it normally does not source its rc
file. Not knowing much about csh, my guess is that your csh is
configured to always source .cshrc even if started
non-interactively. One solution would be to fix that. Another
solution would be to set 'shell' in your ~/.vimrc to a different
shell such as sh.
See
:help 'shell'
:help startup
HTH,
Gary
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---