On 13/04/09 09:56, pansz wrote:
>
> Tony Mechelynck 写道:
>> On Unix, if a vimrc or gvimrc with an initial dot is not found, Vim will
>> look for the same with an initial underscore insead, in case the file is
>> shared with Dos.
>>
>> On a Dos-like OS, if the file is not found with an initial underscore,
>> Vim will look for the same name with an initial dot in case Long File
>> Names are used.
>>
>
> If that is the case, both _vimrc and .vimrc will work under all
> circumstances, should we write it in the help document and recommend
> .vimrc as the standard best practice, while leave _vimrc only for
> backward compatibility?
>
> It seems far more helpful to tell users "write foobar in your ~/.vimrc"
> than to tell users "write foobar in your ~/_vimrc if you have windows
> and ~/.vimrc if you have non-windows".
IIUC, Unix-like Vim will look first with a dot and Dos-like Vim will
look first with an underscore. This means that if you have both
native-Windows Vim and Cygwin Vim on the same machine, even with a
common $HOME directory, you can still (if you want to) keep separate
vimrc scripts for them.
Best regards,
Tony.
--
BEDEVERE: And that, my lord, is how we know the Earth to be banana-shaped.
"Monty Python and the Holy Grail" PYTHON (MONTY)
PICTURES LTD
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---