On 15/03/11 21:02, Tom Sorensen wrote:
On Mon, Mar 14, 2011 at 3:22 PM, xxx<[email protected]> wrote:
In a related note I would like to have to following:
If a .vimrc does not exist in $HOME then look use $HOME/.vim/vimrc if
it exists.
This would make it more uniform than having .vimrc in unix and _vimrc
in windows.
You can use .vimrc in Windows just fine, and vim will pick it up with
absolutely no configuration on your part. The only reason it looks for
_vimrc is because of a stupid decision by MS to not allow Explorer to
create files with a leading "." .
Note that Windows vim will NOT look for ~/.vim by default though --
this is a bigger issue for those using the same config on Windows and
other platforms.
Oh, but it will: see the following a few lines below :help _vimrc
Note: For Unix, OS/2 and Amiga, when ".vimrc" does not exist,
"_vimrc" is also tried, in case an MS-DOS compatible file
system is used. For MS-DOS and Win32 ".vimrc" is checked
after "_vimrc", in case long file names are used.
Note: For MS-DOS and Win32, "$HOME" is checked first. If no
"_vimrc" or ".vimrc" is found there, "$VIM" is tried.
IOW, on Unix ~/.vimrc is looked for first, and ~/_vimrc if it isn't
found. On Windows the order is ~/_vimrc, ~/.vimrc, $VIM/_vimrc,
$VIM/.vimrc (and if there is also a $VIM/vimrc it is a "system vimrc",
normally loaded before, not instead of, the user's vimrc on any system).
You have to change rtp near the top of your .vimrc.
And, of course, if .vimrc was inside of .vim then it would be an
impossible situation.
Tom
Best regards,
Tony.
--
"Every man has his price. Mine is $3.95."
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php