This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Invoking Cygwin vim from Windows Explorer


> I don't know how to pass the filename and directory from an Explorer
> left-click to a Cygwin shell script. (I'm not a programmer, just a dumb
> engineer.)
I'd suggest you use http://defaultprogramseditor.com/ to either change
existing "Open" action for .txt files or to create a new one.
Start the app and go to the context menu settings for .txt files. For
the "Program path", use something similar to
    C:\cygwin64\bin\mintty.exe" --exec C:\cygwin64\bin\vim  "%1"

Pro tip: if you intend to use network shares by IP address, e.g.
"\\192.168.0.2\share\mytxtfile.txt", set the environment variable
CYGWIN to include "noglob". Otherwise Cygwin's file name globbing
breaks your path argument.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]