"Ananya M (RBIN/ECM1)" <[EMAIL PROTECTED]> 写于 2007-04-13
17:02:11:
> Hi,
> I m very new to Vim. But I'm smitten by it nevertheless.
> I use Gvim 7.0. I also have cygwin installed in my winnt system.
> Cygwin defines $HOME to a network drive and places its own .vimrc file in
it.
> I don’t want gvim to use this rc file since it sits on a server.
> How do I force gvim to always consider the _vimrc file in $VIM?
> Is there a command line or registry option?
> -----
> The gvim docs say that gvim looks for $HOME/_vimrc file first(in
> Windows environment).
> However why is my gvim even considering a .vimrc file within $HOME?
> Shouldn’t it have failed its search for _vimrc in $HOME, and moved
> on to $VIM to look for the _vimrc file?
> ------
> I tried setting $MYVIMRC to $VIM/_vimrc . But this failed, since
> gvim always overwrites it to $HOME/.vimrc .
> ------
> Thanks for all your answers.
> Best regards,
> Ananya M
> //I'm sorry to have sent this mail directly to you.
> //My mailer daemon failed to deliver the mail to vim@vim.org .

Hi, I don't think it's possible to use directories other than $HOME while
HOME is defined. But you can redefine the $HOME in your Windows.
(System|Properties|Advanced|Environment Variables|User variables) so that
the HOME environment variable has a different value, this is the best way
IMO.

Or you can specify the init file manually. try launch vim by vim --help,
you'll see that vim -u can override any .vimrc file.



--
Sincerely, Pan, Shi Zhu. ext: 2606

Reply via email to