Vim Tips Wiki
(Duplicate of 848)
(Change <tt> to <code>, perhaps also minor tweak.)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Duplicate|848}}
 
 
{{review}}
 
{{review}}
  +
{{TipImported
{{Tip
 
 
|id=1189
 
|id=1189
  +
|previous=1183
|title=Maintaing multiple versions of GVim in Windows
 
  +
|next=1190
|created=March 30, 2006 4:20
+
|created=2006
 
|complexity=intermediate
 
|complexity=intermediate
 
|author=John Hall
 
|author=John Hall
|version=5.7
+
|version=6.0
 
|rating=11/11
 
|rating=11/11
  +
|category1=
|text=
 
  +
|category2=
This is useful when you want to upgrade to the latest version of Vim but want the ability to easily switch back to an old version. I create a symbolic link called 'current' in my $VIM directory to whichever is my current install of Vim. You can create symbolic links to directories on NTFS with the linkd utility in the resource kit:
 
 
}}
 
This is useful when you want to upgrade to the latest version of Vim but want the ability to easily switch back to an old version. I create a symbolic link called 'current' in my $VIM directory to whichever is my current install of Vim. You can create symbolic links to directories on NTFS with the linkd utility in the resource kit:
  +
<pre>
 
C:\Program Files\Vim>linkd current vim70c
 
C:\Program Files\Vim>dir
 
30/03/2006 13:09 <JUNCTION> current
 
07/02/2006 17:27 <DIR> vim63
 
30/03/2006 09:38 <DIR> vim64
 
30/03/2006 13:08 <DIR> vim70c
  +
</pre>
   
 
I make sure that all shortcuts and registry entries reference gvim as <code>C:\Program Files\Vim\current\gvim.exe</code>, and I can then easily move the current link around to switch versions.
   
  +
==See also==
  +
*[[VimTip848|848 Installing several releases in parallel, even with matchit]]
  +
:Tip 848 applies to any OS: it relies on naming one version the "default" and having it in the PATH; other versions must be invoked with an explicit path.
   
 
==Comments==
C:\Program Files\Vim&gt;linkd current vim70c
 
 
C:\Program Files\Vim&gt;dir
 
 
30/03/2006 13:09 &lt;JUNCTION&gt; current
 
 
07/02/2006 17:27 &lt;DIR&gt; vim63
 
 
30/03/2006 09:38 &lt;DIR&gt; vim64
 
 
30/03/2006 13:08 &lt;DIR&gt; vim70c
 
 
 
 
I make sure that all shortcuts and registry entries reference GVim as C:\Program Files\Vim\current\gvim.exe, and I can then easily move the current link around to switch versions.
 
}}
 
 
== Comments ==
 
 
Look for "Windows Server 2003 Resource Kit Tools". There is a Linkd.exe.
 
Look for "Windows Server 2003 Resource Kit Tools". There is a Linkd.exe.
   
Klaus Horsten
 
, March 30, 2006 10:40
 
 
----
 
----
&gt; I can then easily move the current link around to switch versions.
+
> I can then easily move the current link around to switch versions.
 
You could even make a batchfile (in your path) for each of your versions that sets the link and then executes current/gvim.exe.
 
   
 
You could even make a batch file (in your path) for each of your versions that sets the link and then executes current/gvim.exe.
Also, maybe sysinternals' junction (http://www.sysinternals.com/utilities/junction.html) is better than Microsoft's linkd. ...would not be the first time...
 
   
none
 
, March 30, 2006 13:00
 
 
----
 
----
<!-- parsed by vimtips.py in 0.577799 seconds-->
 

Latest revision as of 06:12, 13 July 2012

Tip 1189 Printable Monobook Previous Next

created 2006 · complexity intermediate · author John Hall · version 6.0


This is useful when you want to upgrade to the latest version of Vim but want the ability to easily switch back to an old version. I create a symbolic link called 'current' in my $VIM directory to whichever is my current install of Vim. You can create symbolic links to directories on NTFS with the linkd utility in the resource kit:

C:\Program Files\Vim>linkd current vim70c
C:\Program Files\Vim>dir
30/03/2006 13:09 <JUNCTION> current
07/02/2006 17:27 <DIR> vim63
30/03/2006 09:38 <DIR> vim64
30/03/2006 13:08 <DIR> vim70c

I make sure that all shortcuts and registry entries reference gvim as C:\Program Files\Vim\current\gvim.exe, and I can then easily move the current link around to switch versions.

See also[]

Tip 848 applies to any OS: it relies on naming one version the "default" and having it in the PATH; other versions must be invoked with an explicit path.

Comments[]

Look for "Windows Server 2003 Resource Kit Tools". There is a Linkd.exe.


> I can then easily move the current link around to switch versions.

You could even make a batch file (in your path) for each of your versions that sets the link and then executes current/gvim.exe.