Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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