delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/10/12:35:29

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding
:in-reply-to; q=dns; s=default; b=F0xaMzBGV0Omv503AVp0Ufkb6ggAtQ
/9YHGdOnA0/+6jyf2mI7JP4z5XVGp9kAISgsdWwU8gPp9LodLr8bmxVpNQLSvgKT
Mkn5DUubL5Jd7ASEpTGp+gIRKa314/th+YRzDdfSBKga5j2H8r1/N4DppGkT9Ou9
jHSn9S9kdonQY=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding
:in-reply-to; s=default; bh=cugFejo2NZscr3CPjoWNjKt6Xuk=; b=ISde
8uNiWIRprrPclnEDGTzVOjUgHTM1R4n+UzEkKzThbRUud3ethMUdPNipTNPVTBtf
N4Nt5xbDpPrzkk1pvY2rv92U8oeP0RuqU2cSOkmx03hqBpc58lmQ5PccY7ul4p9u
gKenNubOJWJl8mdYFNTdAilG2vqVW4FY5QNGxLo=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: carolus <worwor AT bellsouth DOT net>
Subject: Re: Invoking Cygwin vim from Windows Explorer
Date: Mon, 10 Feb 2014 11:34:46 -0600
Lines: 47
Message-ID: <ldb2jf$lvv$1@ger.gmane.org>
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> <832507782 DOT 20140209183702 AT mtu-net DOT ru> <ld8cs9$789$1 AT ger DOT gmane DOT org> <1935757972 DOT 20140210000737 AT mtu-net DOT ru> <ld8s07$cie$1 AT ger DOT gmane DOT org> <1917455121 DOT 20140210021657 AT mtu-net DOT ru> <ld92t1$jr1$1 AT ger DOT gmane DOT org> <1798057018 DOT 20140210054916 AT mtu-net DOT ru> <ld9lfk$60b$1 AT ger DOT gmane DOT org> <5F8AAC04F9616747BC4CC0E803D5907D0C47D419 AT MLBXv04 DOT nih DOT gov>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1
In-Reply-To: <5F8AAC04F9616747BC4CC0E803D5907D0C47D419@MLBXv04.nih.gov>
X-IsSubscribed: yes

On 2/10/2014 10:14 AM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote:
> My suggestion was not an exact recipe, it was just a scheme.
>
> Here the exact step-by-step procedure.  I've checked it works on my Windows 7 box.
>
>  From the Windows "Start" menu, in the Search box at the bottom
> (formerly called "Run") enter (substitute<YourUserName>  with whatever
> ID you are going by on that Windows system):
>
> C:\Users\<YourUserName>\AppData\Roaming\Microsoft\Windows\SendTo
>
> In the opened Explorer window, right click on unoccupied space on the right hand
> pane, select "New"->"Shortcut".
>
> As prompted for "Location", enter (I assume your Cygwin installation is
> at C:\cygwin):
>
> C:\cygwin\bin\mintty.exe -e C:\cygwin\bin\bash.exe -l /bin/vim.sh
>
> click "Next", when prompted for the name, enter "Vim",
> close the dialog with "Finish".
>
> In Cygwin's window:
>
>> cd /bin
>> cat<<EOF
> #! /bin/sh
> exec vim -- "`cygpath -u $1`"
> EOF
>> chmod a+x vim.sh
>
> Now you can check whether it work by going to C:\cygwin\ in Windows
> Explorer, right-clicking Cygwin.bat, and using "Send To" with "Vim".
>
> HTH,
>
> Anton Lavrentiev
> Contractor NIH/NLM/NCBI
>
>
Now working correctly except that it requires an administrative password 
to run mintty. The message looks like the one you get when installing 
new software.

I think permissions on vim.sh are OK:
-rwxr-xr-x 1 cdr None 36 Feb  9 22:22 vim.sh*



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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019