This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Invoking Cygwin vim from Windows Explorer
- From: Jarno Malmari <jarno dot malmari at vincit dot fi>
- To: cygwin at cygwin dot com
- Date: Sun, 9 Feb 2014 17:10:06 +0200
- Subject: Re: Invoking Cygwin vim from Windows Explorer
- Authentication-results: sourceware.org; auth=none
- References: <ld6vd9$jnr$1 at ger dot gmane dot org> <1527769059 dot 20140209090943 at mtu-net dot ru> <ld81nr$im5$1 at ger dot gmane dot org>
> 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