Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Interesting problem,

I had a gvim73 distribution running under Windows XP. Worked great.
Copied it to (it wasn't an installer, but an archive file + runtime files method of installation) Windows 7, put the according folder into the PATH environmental variable,


and now, every time I run "Run" (WinKey+r) with "gvim" it opens up the folder,


instead of running the application of the same name in the vim73 folder (as it should, and as it is expected).

Has anyone any idea what could the source of this weird problem?

share|improve this question

The typical installation of GVIM is to put launcher scripts gvim.bat etc. into %SystemRoot%, not to add Vim's directory to the PATH. The install.exe that ships with Vim will do this for you. Maybe that helps.

share|improve this answer
No, not really ;) Besides, this principle I've described (and it's hardly new) works for every other program. – Rook Dec 1 '12 at 19:44

If I understand correctly what run "Run" means, then this might offer some insight.

Windows binaries may be started with a "run in" parameter that specifies the "current folder" of the shell for the binary in question. In the screenshots below, you'll see that the listed folder will depend on how the binary was started. The first screenshot uses the default bat from the windows folder, the second is the "Properties" dialog of a launcher and in the third you see that the current folder is altered.

original properties custom dir

share|improve this answer
Yes, I'm familiar with that feature. Unfortunatelly, that only affects what folder will the application consider as its start folder. In my case, the application (GVim) is not run at all, but rather the folder named the same way ("gvim") is opened in windows explorer. – Rook Dec 4 '12 at 7:30
Okay, then I have clearly misunderstood the question. Put a gvim.bat somewhere in the PATH and use that. Would you like an example? Is run "Run" the win+r "run a single command" dialog? Please update your question to reflect that. – Ярослав Рахматуллин Dec 4 '12 at 7:40
Nobody else seems to have a problem with understanding the "run" thing. As far as gvim.bat goes, I see no point ... every other program behaves normally (even those named the same way as the directories they're in ... or vice versa). I'm interested why this is only happening with vim. – Rook Dec 4 '12 at 8:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .