Re: File associations in Windows [was: Re: Invoking Cygwin vim from Windows Explorer]

2014-02-10 Thread Jarno Malmari
On 10 February 2014 04:47, Max Polk wrote: > The first problem is that Windows file associations have to be a single exe > with no arguments. When you run that file (double click in Explorer), > Windows passes the filename to that single .exe program. Not exactly true. There's just no good too

Re: Invoking Cygwin vim from Windows Explorer

2014-02-10 Thread carolus
On 2/10/2014 8:41 PM, Andrey Repin wrote: @carolus, navigate to your Cygwin installation /bin, locate mintty.exe, bring up it's properties and remove the "Requires admin powers" checkbox on Compatibility tab. Confirm your changes, and it should work fine from now on. Done, works OK now. This

Re: Invoking Cygwin vim from Windows Explorer

2014-02-10 Thread carolus
On 2/10/2014 8:34 PM, Andrey Repin wrote: Just C:\Programs\CygWin\bin\mintty.exe --exec /bin/vi.exe is enough. or in my case C:\cygwin\bin\mintty.exe --exec /bin/vim-nox.exe Thanks -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Do

Re: Invoking Cygwin vim from Windows Explorer

2014-02-10 Thread Andrey Repin
Greetings, Lavrentiev, Anton (NIH/NLM/NCBI) [C]! >> an administrative password to run minty > That's new to me. My PC at work (despite being secured with tons and tons > of Gov't restrictive policies) does not require any additional permissions > to run a command incorporated in the shortcut fil

Re: Invoking Cygwin vim from Windows Explorer

2014-02-10 Thread Andrey Repin
Greetings, Lavrentiev, Anton (NIH/NLM/NCBI) [C]! > 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

Re: Invoking Cygwin vim from Windows Explorer

2014-02-10 Thread carolus
On 2/10/2014 11:41 AM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: an administrative password to run minty That's new to me. My PC at work (despite being secured with tons and tons of Gov't restrictive policies) does not require any additional permissions to run a command incorporated in the s

RE: Invoking Cygwin vim from Windows Explorer

2014-02-10 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C]
> an administrative password to run minty That's new to me. My PC at work (despite being secured with tons and tons of Gov't restrictive policies) does not require any additional permissions to run a command incorporated in the shortcut file... Anton Lavrentiev Contractor NIH/NLM/NCBI -- Proble

Re: Invoking Cygwin vim from Windows Explorer

2014-02-10 Thread carolus
On 2/10/2014 10:14 AM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: 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 "R

RE: Invoking Cygwin vim from Windows Explorer

2014-02-10 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C]
Oops, I copied it incompletely > cat < cat >vim.sh

RE: Invoking Cygwin vim from Windows Explorer

2014-02-10 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C]
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 with whatever ID you are going by on that Wind

Re: Invoking Cygwin vim from Windows Explorer

2014-02-09 Thread carolus
On 2/9/2014 5:54 PM, Lee wrote: 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 Hot dog! It really works. (But on my system it is vi

Re: Invoking Cygwin vim from Windows Explorer

2014-02-09 Thread carolus
On 2/9/2014 10:44 PM, carolus wrote: Right-click and "Send To" now briefly flashes a Cygwin console but then immediately closes it. More exactly, it requests an administrative password to run mintty, and only after supplying the password does the Cygwin window flash on the screen. I had f

Re: Invoking Cygwin vim from Windows Explorer

2014-02-09 Thread carolus
On 2/9/2014 7:49 PM, Andrey Repin wrote: Greetings, carolus! Just create a shell link in your personal "Send To..." folder with specified command. On Windows XP, it is in "%USERPROFILE%/SendTo". On Windows 7, %USERPROFILE$ points to my user folder. But I get an "access forbidden" messag

File associations in Windows [was: Re: Invoking Cygwin vim from Windows Explorer]

2014-02-09 Thread Max Polk
On 2/9/2014 12:11 PM, carolus wrote: > Is there some configuration that will let me open a text file > in Cygwin vim by clicking on the file in an Explorer window? I wonder if anyone else needs Windows file associations for sequences of Cygwin commands as well. If this is useful to many, maybe

Re: Invoking Cygwin vim from Windows Explorer

2014-02-09 Thread Andrey Repin
Greetings, carolus! >> 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 extens

Re: Invoking Cygwin vim from Windows Explorer

2014-02-09 Thread Balaji Venkataraman
On Sun, Feb 9, 2014 at 3:54 PM, Lee wrote: > 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 This solution works (I'm surprised too)

Re: Invoking Cygwin vim from Windows Explorer

2014-02-09 Thread carolus
On 2/9/2014 12:49 PM, carolus wrote: On 2/9/2014 11:35 AM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: 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? Thanks, but maybe not simple enough

Re: Invoking Cygwin vim from Windows Explorer

2014-02-09 Thread Lee
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 A

Re: Invoking Cygwin vim from Windows Explorer

2014-02-09 Thread carolus
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. Regardles

Re: Invoking Cygwin vim from Windows Explorer

2014-02-09 Thread Andrey Repin
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 w

Re: Invoking Cygwin vim from Windows Explorer

2014-02-09 Thread carolus
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 targ

Re: Invoking Cygwin vim from Windows Explorer

2014-02-09 Thread Andrey Repin
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? There's like 5 ways to do it. What you've tried already and what your results so far? >> >>> I don't know how to pass the f

Re: Invoking Cygwin vim from Windows Explorer

2014-02-09 Thread carolus
On 2/9/2014 11:35 AM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: 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? Thanks, but maybe not simple enough for me. I find a SendTo shortcut und

RE: Invoking Cygwin vim from Windows Explorer

2014-02-09 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C]
Correction: c:\cygwin\bash.exe should have been written as c:\cygwin\bin\bash.exe. Sorry about that. Anton Lavrentiev Contractor NIH/NLM/NCBI -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.htm

RE: Invoking Cygwin vim from Windows Explorer

2014-02-09 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C]
> 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 l

Re: Invoking Cygwin vim from Windows Explorer

2014-02-09 Thread carolus
On 2/9/2014 8:37 AM, 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? There's like 5 ways to do it. What you've tried already and what your results so far? I don't know how to

Re: Invoking Cygwin vim from Windows Explorer

2014-02-09 Thread Jarno Malmari
> I don't know how to pass the filename and directory from an Explorer > left-click to a Cygwin shell script. (I'm not a programmer, just a dumb > engineer.) I'd suggest you use http://defaultprogramseditor.com/ to either change existing "Open" action for .txt files or to create a new one. Start th

Re: Invoking Cygwin vim from Windows Explorer

2014-02-09 Thread Andrey Repin
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? >> >> There's like 5 ways to do it. >> What you've tried already and what your results so far? >> > I don't know how to pass the filename and dire

Re: Invoking Cygwin vim from Windows Explorer

2014-02-09 Thread carolus
On 2/8/2014 11:09 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? There's like 5 ways to do it. What you've tried already and what your results so far? I don't know how to

Re: Invoking Cygwin vim from Windows Explorer

2014-02-08 Thread Andrey Repin
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? There's like 5 ways to do it. What you've tried already and what your results so far? -- WBR, Andrey Repin (anrdae...@yandex.ru) 09.02.2014, <09:07

Invoking Cygwin vim from Windows Explorer

2014-02-08 Thread 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? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: