On 13/04/09 03:10, pansz wrote:
>
> Tony Mechelynck 写道:
>> So you should create your Windows gvimrc by using (in Vim)
>>
>> :e ~/_gvimrc
>
> No, vim will always search for a file named $HOME/.gvimrc regardless of
> the platform.
>
> On windows it will search for $VIM/_gvimrc and $HOME/.gvimrc
>
> So if you want to put gvimrc in $HOME, just use the .gvimrc instead of
> _gvimrc
>
> Windows recognize $HOME as well, so you could set the HOME environment
> variable in Windows(my computer|properties|advanced|environment
> variables) to your cygwin HOME, and you don't need a soft-link at all.
Note that inside Vim, ~ (at the start of a path) is a shortcut for
$HOME, on any platform.
Quoting from the helpfile gui.txt, at lines 95sqq.
> Recommended place for your personal GUI initializations:
> Unix $HOME/.gvimrc
> OS/2 $HOME/.gvimrc or $VIM/.gvimrc
> MS-DOS and Win32 $HOME/_gvimrc or $VIM/_gvimrc
> Amiga s:.gvimrc or $VIM/.gvimrc
Notice the underscore for Windows even under $HOME.
You could set the Windows $HOME to the same value of the Cygwin $HOME,
but maybe you wouldn't want to. Cygwin knows about soft links, they
aren't any kind of evil, dirty trick to be avoided at all costs. ;-)
OTOH Windows usually doesn't know about them, hence the direction Cyg ->
Win and not vice-versa.
Best regards,
Tony.
--
A child can go only so far in life without potty training. It is not
mere coincidence that six of the last seven presidents were potty
trained, not to mention nearly half of the nation's state legislators.
-- Dave Barry
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---