delorie.com/archives/browse.cgi | search |
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:date:from:reply-to:message-id:to:subject | |
:in-reply-to:references:mime-version:content-type | |
:content-transfer-encoding; q=dns; s=default; b=kwArokxOWypzWJYl | |
NAf1bZ9rjOSU0f0A9PvjGsjLnZTvrTCx4vv3jeDMIIc7aPww3ESVep7X1r47A2UI | |
dT/IaeKoyMl41EoNsITFyNiO2bgkFuaZep+IHfGepZ3eeDP1TGCmuHcv9sqt6SZ+ | |
tBK3xmZB4g7HF9j/3Mn8l1+e1kQ= | |
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:date:from:reply-to:message-id:to:subject | |
:in-reply-to:references:mime-version:content-type | |
:content-transfer-encoding; s=default; bh=UZzwtU0C6PwhUVFNRzqpON | |
c6SV0=; b=PsBZVxrSyZ9pFmaxmGSEYv4igbOPKDr8XZOVIMiSRfA4nbrkY+qDMi | |
uxaeTJuvPJ+aJXbQOertMbwduBjhDrEfAOp5Rj70+ldZi526SIt4gb6Bg7k0wUR+ | |
+6rN2eW+Hq7LUQG+h+ikWTQmgyj40YOGJB4F7RY8y+Y35b8fQzo80= | |
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=3.4 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 |
X-HELO: | smtpback.ht-systems.ru |
Date: | Mon, 10 Feb 2014 02:16:57 +0400 |
From: | Andrey Repin <anrdaemon AT yandex DOT ru> |
Reply-To: | Andrey Repin <cygwin AT cygwin DOT com> |
Message-ID: | <1917455121.20140210021657@mtu-net.ru> |
To: | carolus <worwor AT bellsouth DOT net>, cygwin AT cygwin DOT com |
Subject: | Re: Invoking Cygwin vim from Windows Explorer |
In-Reply-To: | <ld8s07$cie$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> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Greetings, carolus! >>>>>>> Is there some configuration that will let me open a text file in Cygwin >>>>>>> vim by clicking on the file in an Explorer window? >>>> >>>> >>> If there is no simple answer, let's just drop the subject. I'll >>> continue to open cygwin and cd to the target directory whenever I want >>> to open a file in vim and happen to be in Explorer. >> >> As I said, there's like five different answers. Depends on what you actually >> want to do. > To clarify: In Cygwin folders I routinely use vim for all text > files, and in Windows folders I routinely use Wordpad for only those > text files with extension .txt. For files in a Windows folder that have > extension .f or .sh or no extension at all, I would like to open those > with vim in a Cygwin terminal. Currently I'm doing this by going into > cygwin and manually changing directories, but there must be a better way. > The suggestion by Anton Lavrentiev appears to accomplish this, but > without enough detail for me to implement given my limited understanding > of Windows. 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. >> 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. And, as I just checked, the vim transparently understands native paths. > I want to use the Cygwin console application, which I am used to, and not to > install the native Windows gvim. Googling shows lots of discussion of > how to use the windows native executable with Cygwin, but not the reverse. No comments... >> But since you're changing subject back and forth, it's hard to help you. > Well, I can see one change: originally I failed to state that I wanted > the selection of vim to be optional. Lavrentiev's proposal, which would > do exactly that, reminded me. Anton's... Comma reverses the order. -- WBR, Andrey Repin (anrdaemon AT yandex DOT ru) 10.02.2014, <02:10> Sorry for my terrible english... -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |