delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/10/11:15:19

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:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; q=dns; s=default; b=MU7vmmOxWsXkhLlcSpsPdhbreSTkG
x27FuFSwGfg+5dkYJT89z8QJut2R8hXmsKQoFauE0WhIrpZ33qHFVuWcgNSvVgwH
3KOp2EH/Q6f/4QfOHl7EmyqFIuXI+fQIumIuOFFekZ8k97ZUw1/+uAfDgj2QPZt+
cdEo8oYJuCOsBQ=
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:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; s=default; bh=YFPSvL4p0rafTkXHG3Rl722H2fA=; b=Xc9
87YfLGGJwfrmsu51wYfYQvHgxTfV/dBIAqOC3aQLnuQG89fK1liVxdPs1Me0c8Dx
4BThcIKdR3zWWADCT4QnD/cPlnvdM6CIl54ccOAv/rYrlo1hHVKMEBOYZbh3h1c8
6vrlZKvd4crYVpuS0KygTbVgiel+yMK0rl2+aDqM=
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=-1.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: nihxway6out.hub.nih.gov
X-IronPortListener: Outbound_SMTP
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AgUFABP6+FKcKEev/2dsb2JhbABZgww4V78+gREWdIImAQEEEhUTRAsCAQgNFRQQHxMXAQ0CBAEaGodjnnWqexeOTDiDJIEUBI5jkDiLMYMtgio
From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr AT ncbi DOT nlm DOT nih DOT gov>
To: carolus <worwor AT bellsouth DOT net>, "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: Invoking Cygwin vim from Windows Explorer
Date: Mon, 10 Feb 2014 16:14:43 +0000
Message-ID: <5F8AAC04F9616747BC4CC0E803D5907D0C47D419@MLBXv04.nih.gov>
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>
In-Reply-To: <ld9lfk$60b$1@ger.gmane.org>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s1AGFEC2001935

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


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