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=c2I1RsYE6c71f9p5Wml336V1LfaRpP ZxuqrQIIXdxIeb1pFPUAL1hdXoNgoYmO8BR32v15YgyY1/vv1VGXk79PNHX/oR9i Tr+Ty7SuzioQP4TaCoqBhsifWmuzljPLAt4789/PNCRqCGgvHvv2TcweGpejy7Xd f59wyHHmvkB80= 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=B22eRbwA+1MQgUR0avjCGRJH4rM=; b=OLhZ 1QV4Wl3n4H/xlBa6QpTvDCFMYinV+HbgkNXLlT2qw7y8UggBuuGvj7Ntm/HkDA97 UGYtoSR2yjvAt+OmqAYe+blw0E/33qq1Oa+jorZjrNWlv7C78RtCVlJlcd9iuZNc ofzoZOxBwvIbyqcYRbwUy6jqVi5adeYZNj1eRYM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-1.5 required=5.0 tests=AWL,BAYES_20,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 Subject: Re: Invoking Cygwin vim from Windows Explorer Date: Sun, 09 Feb 2014 17:27:36 -0600 Lines: 32 Message-ID: References: <1527769059 DOT 20140209090943 AT mtu-net DOT ru> <832507782 DOT 20140209183702 AT mtu-net DOT ru> <1935757972 DOT 20140210000737 AT mtu-net DOT ru> <1917455121 DOT 20140210021657 AT mtu-net DOT ru> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 In-Reply-To: <1917455121.20140210021657@mtu-net.ru> X-IsSubscribed: yes On 2/9/2014 4:16 PM, Andrey Repin wrote: > Just create a shell link in your personal "Send To..." folder with specified > command. On Windows XP, it is in "%USERPROFILE%/SendTo". Dunno about other, > This way, even though a bit convoluted, allow you to edit ANY file with your > chosen program. Regardless of extension, and even in absence of it, as it is > the case for many traditional shell scripts. On Windows 7, %USERPROFILE$ points to my user folder. But I get an "access forbidden" message if I try to open the SendTo subdirectory from Explorer. There is no option to right-click and elevate, and I get the same "access forbidden" message even if I switch to an administrator account. Strangely, I can open that directory from the command line, but the only way I know how to create a Windows link is by right-click drag&drop from the GUI. > >>> >> I.e. just make an association to open a file with vi(m). In a usual Windows way. >> > The only "usual Windows way" I know is for windows executables. > Cygwin applications are (surprize!) windows executables But not "normal" executables in the sense that they run when you click on them from Explorer. Somehow you have to get into cmd.exe first. And then you need to get the path and filename into vim. This is getting too complicated for a nonprogrammer like myself. Probably the subject is best dropped. It is more a Windows problem than a Cygwin one, and I have been getting by with the clumsy method for the last ten years. I just thought there might be an easy fix. Thanks for the help. -- 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