53868Re: vimrc on windows
- Sep 30, 2004Hi Antoine
>> o Let vim figure out $VIM and $VIMRUNTIME by itself orYes this is an advantage. Although with my configuration it is
>> set $VIM=%ProgramFiles%\vim\ and let vim figure out
> Yes. Though I suppose it doesn't matter much. The reason I prefer
> it this way is that $VIMRUNTIME will change whenever there is a
> new version (not patchlevel) upgrade of Vim.
possible to have several versions of vim installed and then select
the the desired one with $VIMRUNTIME, this would not be very practical.
>> o Put the personal _vimrc into %USERPROFILE% (that is mapped toIn this case I would prefer
>> to $HOME by vim). I can then put my myvimrc.vim and mswin.vim
>> where I want ant source them from within _vimrc.
> I noticed a few minutes ago that %HOME% doesn't exist by default.
> I added a CMD.EXE autorun script with the following line:
> set HOME=%USERPROFILE:Documents and Settings=DOCUME~1%
> i.e. to equate it to the "short name" of %USERPROFILE%. You -- or
> your sysadmin -- could equate it with %USERPROFILE%\Application
> Data, I see nothing wrong with that. Matter of taste, again.
set HOME=%USERPROFILE%\My Documents
and then handle the vim configuration directly in my personal data.
The _vimrc file I would make invisible. Like in linux. Extremly
matter of taste ...
> IIRC, $VIMINIT is for compatibility with earlier releases. IThanks for mention this -- I didn't realise this.
> believe that it can be left unset. It should not be set to the
> above because it is an Ex-command, not a path.
> Well, I could live with your configuration if I had, or withNever touch a running system ;-)
> something very much like it. But I'm not going to change mine
> either, as long as it works.
- << Previous post in topic Next post in topic >>