delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/17/13:20:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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: Wed, 17 Mar 2004 13:17:33 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Crescioli, Phil" <Phil DOT Crescioli AT gd-ais DOT com>
cc: cygwin AT cygwin DOT com
Subject: RE: GVIM
In-Reply-To: <33F012255162604984A3F4BDA95C6EC4F12E07@mstaex1b.dsrusi.com>
Message-ID: <Pine.GSO.4.56.0403171307380.25803@slinky.cs.nyu.edu>
References: <33F012255162604984A3F4BDA95C6EC4F12E07 AT mstaex1b DOT dsrusi DOT com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

FWIW, this won't work from rxvt or xterm.  Why not use '(`uname -o` ==
"Cygwin")'?
	Igor

On Wed, 17 Mar 2004, Crescioli, Phil wrote:

> FYI,
> I took your bash shell vi->gvim converter and re-wrote it
> for placement in my ~/.tcshrc.
>
> if ($?tcsh) then
>     if ("$TERM" == "cygwin") then
>         echo "Setting VI to kickoff GVIM within a cygwin window"
>         if (-x "C:/vim/vim62/gvim.exe") then
>            alias vi "C:/vim/vim62/gvim.exe"
>         endif
>     endif
> endif
>
> Thanks for the tip!
> Phil
> ---
>
> -----Original Message-----
> From: offby1 AT blarg DOT net [mailto:offby1 AT blarg DOT net]
> Sent: Friday, March 12, 2004 9:51 AM
> To: Crescioli, Phil
> Subject: Re: GVIM
>
> >>>>> "Phil" == Crescioli, Phil <Phil DOT Crescioli AT gd-ais DOT com> writes:
>
>     Phil> Hello all, Why is only VIM and not GVIM included with the
>     Phil> Cygwin package?  I'd love to use GVIM straight from a Cygwin
>     Phil> install.
>
> Cygwin packages whatever software someone has bothered to port to
> Cygwin.  Apparently nobody has ported gvim.  Go ahead and do it
> yourself!
>
> As it happens, I use gvim with Cygwin, and it's fine.  I had to
> install Cygwin and gvim separately, of course, but neither
> installation is difficult.
>
> To further the illusion of gvim being "part of" Cygwin, I've put this
> shell function definition in ~/.bashrc:
>
>     if [  "$OSTYPE" = "cygwin" ]; then
>         if [ -x "/c/vim/vim62/gvim.exe" ]; then
>             vi ()
>             {
>                /c/vim/vim62/gvim.exe "$@"
>             }
>         fi
>     fi
>
> Thus, when I type `vi foo' in a Cygwin shell, I actually run gvim.

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

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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