(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= |
+ | |created=2006 |
|complexity=intermediate |
|complexity=intermediate |
||
|author=John Hall |
|author=John Hall |
||
− | |version= |
+ | |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> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
+ | </pre> |
||
⚫ | |||
+ | ==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. |
||
⚫ | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
− | |||
− | |||
⚫ | |||
⚫ | |||
− | |||
⚫ | |||
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 |
||
---- |
---- |
||
− | + | > I can then easily move the current link around to switch versions. |
|
− | |||
⚫ | |||
⚫ | |||
− | 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
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.