Vim Tips Wiki
Register
(Insert TipProposed template + manual clean)
(Advice in this tip may not be generally applicable)
Line 44: Line 44:
   
 
==Comments==
 
==Comments==
  +
I'm posting here so the author will have a better chance to respond to the comments on the [[Vim_Tips_Wiki:Proposed_new_tips#Vim On Vista|proposed new tips page]].
   
  +
Also, for anyone reading this tip, please note that the best way to get Vim for Windows (both Vim and gvim in the one download) is at
  +
https://sourceforge.net/project/showfiles.php?group_id=43866&package_id=39721
  +
  +
The web site is "Cream (for Vim)", but the files on this page are for pure Vim (no Cream). This is the most reliable and up-to-date version of Vim for Windows, supplied as an executable installer.
  +
  +
--[[User:JohnBeckett|JohnBeckett]] 09:37, 8 January 2008 (UTC)
 
----
 
----
 
[[Category:Windows]]
 
[[Category:Windows]]

Revision as of 09:37, 8 January 2008

Proposed tip Please edit this page to improve it, or add your comments below (do not use the discussion page).

Please use new tips to discuss whether this page should be a permanent tip, or whether it should be merged to an existing tip.
created December 21, 2007 · complexity basic · author Fuzzymonk · version 7.0

Ok, so I wasted a good part of thanksgiving day trying to get Vim working again on Vista. I am not sure what happened, but it went nuts. It may have been the recent windows updates or the face that I installed .NET 3.5, but it was unusable. None of the plugins/syntax highlighting/menus that I have grown to love. I need Vim with Ruby/Python/Ctags/and a ton-o-plugins. So here is what I did:

Download and Install

Download and Install gvim71-2.exe (I used the one from hasno.info)

  • changed the install dir to C:\vim to get around some odd things with UAC.
  • I prefer to have my vimfiles in my home directory, so I choose that option from the installer.
    • I also recommend setting the hidden attribute on the vimfiles folder so it does not visually clutter up the my home directory (Right click -> properties -> General Tab -> Check Hidden).

Copy the following files into C:\vim\vim71\

  • iconv.dll (from here You can find the dll file in the bin directory of the "libiconv-win32" archive.)
  • libintl.dll (from here Get "intl.dll" from the bin directory in the gettext-win32 archive and store it as "libintl.dll" in the same directory as gvim.exe, overwriting the file that may already be there.)
  • gvimext.dll (from script#1720)

Configure around Vista

Here is the thing that stuck me for hours, if you had previously installed Vim to the recommended location of C:\Program Files you won't be able to associate files with the new location until you edit the registry. Go to:

HKEY_CLASSES_ROOT\Applications\gvim.exe

Make sure the edit\command and open\command Keys have the following default value:

C:\vim\vim71\gvim.exe "%1"

If you want the "Edit with vim" Shell Extension in Windows Explorer:

  • Run C:\vim\vim71\install.exe
  • Choose no when asked if you want to uninstall, then enter "d 14"

Troubleshooting

Shell Extension

If you get a gvim not in your path error with the "Edit with vim" shell ext, make sure you do not have gvim.exe set to run as Administrator, as that will break it.

Comments

I'm posting here so the author will have a better chance to respond to the comments on the proposed new tips page.

Also, for anyone reading this tip, please note that the best way to get Vim for Windows (both Vim and gvim in the one download) is at https://sourceforge.net/project/showfiles.php?group_id=43866&package_id=39721

The web site is "Cream (for Vim)", but the files on this page are for pure Vim (no Cream). This is the most reliable and up-to-date version of Vim for Windows, supplied as an executable installer.

--JohnBeckett 09:37, 8 January 2008 (UTC)