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

I was successful in opening vim via shortcut in Windows. It is simple as creating a target with

C:\cygwin\bin\mintty.exe /bin/vim

Now when I open a file with this shortcut, it seems as though cygwin terminal (using bash) trying to execute the file, because after reading each line it outputs "command not found" This is unexpected behavior as the file is normal text file without shebang. Also I have not been able to test this yet, but I would like to learn how to open the program with the directory set to the location of the file.

share|improve this question
C:\cygwin\bin\mintty.exe "/bin/vim df" <-- does that open file df? not sure what if df has a space. – barlop May 27 '12 at 7:07
In that case mintty.exe tries to execute "bin/vim df" as a program. I am currently able to drag a file to that shortcut and open it in vim. I need to find a way to pass in an argument through a target prompt in the short page. – Forethinker May 28 '12 at 11:12
up vote 1 down vote accepted

Have you tried running mintty with "-e" switch?

C:\cygwin\bin\mintty.exe -e /bin/vim

share|improve this answer

You must log in to answer this question.

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