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:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; q=dns; s=default; b=fk 4hoIFbKj2US5q6w7PxWw75F6IhnGA9fbIEbZT64jTBAn21kujNI8rVv5sbvAMJrX CD2MEaoxsEw5RkBcy3X+CPjTPki4bSvi3AaSGoKDCClGTe9njsLgiXA2lCQthE8X 2+YRSq4Ji72LQNWaTrKz8nWepWK9IYYzt4sjDtIEg= 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:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; s=default; bh=3IBcTE2V a4ZaH1WAyE2Su1wYbOc=; b=sr2a9M2VaPbhWKl3xB4afTpsox9xip9xzH1yJ0/P ryz8wI2OvcJCxe4FEz4lhafMsRCB30QRjOrh54m8bjw7HaZ6GCpVfC+4Hc1+IZDe b0xeBx7GIzCtDwN0cmNm7L+L+IZc26w5EdAUMleC1BHwo6pq+yxMlGt7HfbklBZ0 XeM= 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=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-we0-f174.google.com MIME-Version: 1.0 X-Received: by 10.180.105.41 with SMTP id gj9mr8175705wib.28.1391990097215; Sun, 09 Feb 2014 15:54:57 -0800 (PST) In-Reply-To: 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> Date: Sun, 9 Feb 2014 18:54:57 -0500 Message-ID: Subject: Re: Invoking Cygwin vim from Windows Explorer From: Lee To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes On 2/9/14, carolus wrote: > 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. I'm surprised this worked, but right click on a .txt file in explorer, select open with, choose program click on "browse", navigate to c:\cygwin\bin (or wherever you installed cygwin), double-click on vi.exe > 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. have you tried http://www.vim.org/download.php installs a windows version of vi that you can put in your path & no nasty cygwin/windows permissions or line endings issues. Regards, Lee -- 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