RE: VIM not able to pick vimrc_example.vim
>-----Original Message-----LOL. I'd forgotten there was a discussion on this very topic just a bit
>From: Manu Anand [mailto:manu.anand@...]
>Sent: Tuesday, August 31, 2004 8:54 AM
>To: Aldrich, Timothy
>Subject: Re: VIM not able to pick vimrc_example.vim
>On Tue, 31 Aug 2004 17:44:57 +0100, Aldrich, Timothy
>> > -----Original Message-----
>> > From: Manu Anand [mailto:manu.anand@...]
>> > Sent: Tuesday, August 31, 2004 1:53 AM
>> > To: vim@...
>> > Subject: VIM not able to pick vimrc_example.vim
>> > Hi Gang:
>> > When I right click and open a file, vimrc_example.vim getrs read.
>> > However when I click on a .txt file, this file doesn't get read.
>> > What might be the reason?
>> The reason is because when you 'click on a .txt file' ,
>> in the Directory of the file. In the other instances it
>starts in the
>> directory that contains (g)vim.exe. You can confirm this by typing
>> :cd in each instance. It's Able to source the vimrc_example.vim
>> because it is in the current directory.
>Spooky I say.
>Thanks for clearing that up.
IIRC, when you open vim with a single pathname to edit, vim will :cd to
that directory. For multiple pathnames it defaults to the same as for
no paths (only filenames), which is $VIM.
When you right-click, Edit with vim, it passes the complete path. When
you [double-] click the file, there is no path; hence, $VIM.