|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
gvimdiff without sourcing .cshrc in linux/unixHi,
I want to know is there a way to make vim "not" source .cshrc file when gvimdiff is used... Thanks, Burak --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: gvimdiff without sourcing .cshrc in linux/unixOn Wed, Nov 11, 2009 at 5:10 AM, Bu Rak wrote: > Hi, > > I want to know is there a way to make vim "not" source .cshrc file when > gvimdiff is used... > > Thanks, > > Burak 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. ~Matt --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: gvimdiff without sourcing .cshrc in linux/unix2009/11/11 Matt Wozniski <mjw@...>
Hi Matt, Actually I am running the "gvimdiff" command directly (no csh wrapper). Thanks, Burak --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: gvimdiff without sourcing .cshrc in linux/unixOn 2009-11-11, Bu Rak wrote: > > 2009/11/11 Matt Wozniski <mjw@...> > 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 -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: gvimdiff without sourcing .cshrc in linux/unixHi, Gary Johnson wrote: > > On 2009-11-11, Bu Rak wrote: >> >> 2009/11/11 Matt Wozniski <mjw@...> > >> 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 -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |