delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/24/13:23:20

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
MIME-Version: 1.0
Subject: RE: More robust color terminal
Date: Fri, 24 Jun 2005 13:23:06 -0400
Message-ID: <F71C0DC6B4FD3648815AAA7F969E3529015301BB@sr002-2kexc.ateb.com>
From: "Reid Thompson" <Reid DOT Thompson AT ateb DOT com>
To: <cygwin AT cygwin DOT com>, "Laran Evans" <lc278 AT cornell DOT edu>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j5OHNHvv024326

> Alternatively, you could compile (and, hopefully, contribute) gvim.
> 	:-) 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!
> 
> "The Sun will pass between the Earth and the Moon tonight for a total
> Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

vim6.3 compiles ootb for X.

$ ls -lrt /usr/local/bin/*vim*
lrwxrwxrwx  1 Reid.Thompson Domain Users       7 Dec 16  2004
/usr/local/bin/gvim -> vim.exe
lrwxrwxrwx  1 Reid.Thompson Domain Users       7 Dec 16  2004
/usr/local/bin/evim -> vim.exe
lrwxrwxrwx  1 Reid.Thompson Domain Users       7 Dec 16  2004
/usr/local/bin/gvimdiff -> vim.exe
lrwxrwxrwx  1 Reid.Thompson Domain Users       7 Mar  3 08:27
/usr/local/bin/vimdiff -> vim.exe
-rwxr-xr-x  1 Reid.Thompson Domain Users 1273856 Jun 13 12:01
/usr/local/bin/vim.exe
-rwxr-xr-x  1 Reid.Thompson Domain Users    1600 Jun 13 12:02
/usr/local/bin/vimtutor

not the cleanest way to handle it i'm sure, but..... in .bashrc ( i have
both cygwin compiled *vim and native *vim on my machine, if X is
running, use cygwin gvim, else use native gvim, or use 'vim' instead of
'vi' from command line to get non-gui)

HAVEX=`ps -ef | grep XWin`
if [ "$HAVEX" != "" ]
then
    HAVEX=1
    export HAVEX
fi

alias vi='dovi'
function dovi {
     if [ ! $HAVEX ]
     then
         if [ "$1" != "" ]
         then
             value=`cygpath -w $*`
             /C/Vim/vim62/gvim $value
         else
             /C/Vim/vim62/gvim $*
         fi
     else
         if [ "$1" != "" ]
         then
             value=`cygpath -w $*`
             /usr/local/bin/gvim $value
         else
             /usr/local/bin/gvim $*
         fi
     fi 
}


reid


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