www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/30/20:02:57

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Fri, 30 Jul 2004 20:02:51 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Tomasz Rojek <tiroy AT poczta DOT onet DOT pl>
cc: cygwin AT cygwin DOT com
Subject: Re: [cygwin tips&tricks] Shortcut to vim in "Send to" folder
In-Reply-To: <cdfoqh$c55$1@sea.gmane.org>
Message-ID: <Pine.GSO.4.58.0407301950480.19838@slinky.cs.nyu.edu>
References: <cdfoqh$c55$1 AT sea DOT gmane DOT org>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

Tomasz,

On Sun, 18 Jul 2004, Tomasz Rojek wrote:

> Hi all,
>
> I would like to share with this tip with any cygwin newbie (all the cygwin
> developers know it for sure :)

Apparently not...

> I use a few text editors in my daily work, today I finally ;) came to idea
> to have a shortcut pointing to vim in my "Send to" right click submenu. I
> use this command in a shortcut to run vim in rxvt window:
>
> C:\FOLDER\cygwin\bin\rxvt.exe -display :0 -T vim -vb -sr -sl 10000 -bg black -cr white -fg LightSteelBlue1 -j -fn "-b&h-lucidatypewriter-medium-r-normal-sans-0-0-14-14-m-0-iso8859-2" -e /usr/bin/vim
>
> Sending a file to vim works fine, drag&dropping any file on above shortcut
> opens the file in vim too.

Thank you, thank you, thank you!  I've been using this for almost two
weeks now, with nary a glitch.  It also showed me a way to properly
implement "vi.bat" and "vimdiff.bat" (attached) which allow one to invoke
"vi file [files]" or "vimdiff file1 file2 [files...]" from a DOS prompt.

The above opened a DOS box, so I actually had to change it to

C:\cygwin\bin\run.exe /bin/rxvt.exe -display :0 -T vim -vb -sr -sl 10000 -bg black -cr white -fg LightSteelBlue1 -j -fn "-b&h-lucidatypewriter-medium-r-normal-sans-0-0-14-14-m-0-iso8859-2" -e /usr/bin/vim

in my shortcut (my "run.exe" is in /bin, see below).  BTW, the "-sr -sl
10000" are not needed for vim itself, due to alternate screen usage, but
they are useful if you invoke shell commands via ":!" and want to see the
output.

One cool thing I can add is that I've compiled my own version of "run.exe"
with an embedded vim icon (the nice-looking one from the vim source), and
made that the icon for this shortcut.  Looks nice.  If anyone is
interested, I can provide a patch to run...

FWIW, IMO it's about time for run to become a Cygwin package in its own
right.  Yeah, I know, <http://cygwin.com/acronyms/#SHTDI>...  I'll try to
coordinate with the Cygwin/X maintainer.  But it'll have to be in a week.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019