Hi,
Gary Johnson wrote: > > 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. ISTR .cshrc is always sourced by csh and it's .login that is only sourced by an interactive csh. So the OP should move everything that is not necessary for non-interactive shells to .login. Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin) --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
