For example, if my path is:

C:\Program Files (x86)\Vim

And I want it to be:


How do I do that so I will still be able to call "gvim" on CMD, for example?

  • 2
    Uninstall Vim and then reinstall it with the path that you want? Mar 9, 2016 at 5:03
  • Isn't there another way?
    – 144 Ky
    Mar 9, 2016 at 5:08
  • Yes, manually duplicating the steps of uninstalling and installing ;-) You probably don't need to do the uninstall step by the way, but having two Vim installations strikes me as a potential source of great confusion. Why do you want to do this "another way"? Mar 9, 2016 at 5:10
  • Mainly to learn, I guess.
    – 144 Ky
    Mar 9, 2016 at 5:12
  • 3
    There's no problem with relocating the executable--the problem is relocating the plugin files. You might be able to solve that problem by setting the VIM environment variable to the new location of the vim74 directory.
    – garyjohn
    Mar 9, 2016 at 6:49

1 Answer 1


The best way to do this is, as @Carpetsmoker noted in the comments, to simply uninstall gVim and reinstall it, selecting the desired installation directory. Depending on your installation options, gVim may have made some registry modifications to establish file associations when initially installed. For example, the "Edit with Vim" context menu option for explorer is a key under HKEY_CLASSES_ROOT/*/shell/Vim/Command with a value of "C:\Program Files (x86)\vim\vim74\gvim.exe" "%1". Uninstalling and re-installing will ensure these keys have correct values.

You can, of course, simply move the entire C:\Program Files (x86)\Vim folder somewhere else. If you do this, you'll have to at least fix up your %PATH% environment variable to include the new location, or gvim won't work. You'll also have to find and fix (or delete) any registry or similar associations you want to continue working or don't want to have any longer.

Uninstalling and re-installing is definitely the ideal option here. It's way less work and will result in a much less broken installation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.