X-Recipient: archive-cygwin@delorie.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=w4P58OBKighJ/OIzZ8W456HB1uHvEY
	mnc66NuNKF2jP6kn02ZwsbXKi0yHmO6yZtZoyBy/J8Ynaa3397pjI+hCyigvLhTF
	03CdLcvQHxrJM8i3dOtbpx0HzjhjvSV8JYrulAR6ODc6cJQYymLxhILXA6nYyFXn
	67+A5EUAE2r1c=
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=c+bdT6zXG4A5mvd5T9FQZqYLhxo=; b=sM4N
	czR+G82ANj7DbTnZQP0i3zg1gULz3SV/b4DPNf5flbW0lywb3Ykt59pmkEWuhgo+
	KsRkdnbGWij5cJQ6SXEI6cOfGLSR4lBJh1Kp52+rbb1Sr6ucUWWnIKCFGOcaCoPE
	efVRQgRmoXe08y1WKYgJw2H7OgvL4nP2TcNZv0c=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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@cygwin.com
From: carolus <worwor@bellsouth.net>
Subject: Re: Invoking Cygwin vim from Windows Explorer
Date: Sun, 09 Feb 2014 15:29:49 -0600
Lines: 40
Message-ID: <ld8s07$cie$1@ger.gmane.org>
References: <ld6vd9$jnr$1@ger.gmane.org> <1527769059.20140209090943@mtu-net.ru> <ld81nr$im5$1@ger.gmane.org> <832507782.20140209183702@mtu-net.ru> <ld8cs9$789$1@ger.gmane.org> <1935757972.20140210000737@mtu-net.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: <1935757972.20140210000737@mtu-net.ru>
X-IsSubscribed: yes

On 2/9/2014 2:07 PM, Andrey Repin wrote:
> 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.


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

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




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

