This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Invoking Cygwin vim from Windows Explorer
- From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr at ncbi dot nlm dot nih dot gov>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Sun, 9 Feb 2014 17:35:16 +0000
- Subject: RE: Invoking Cygwin vim from Windows Explorer
- Authentication-results: sourceware.org; auth=none
- 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>
> If there is no simple answer,
Maybe not as simple, but...
What about adding a "Vim" destination to your "Send To..." folder
under your Windows profile?
The target command can be something like:
C:\cygwin\bin\mintty.exe -e c:\cygwin\bash.exe -c C:\cygwin\bin\vim.sh
Where vim.sh is something like this:
#! /bin/sh
vim -- "`cygpath -u $1`"
This way you can right-click on the file, select "Send To", then "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