Mail Archives: cygwin/2005/06/24/13:23:20
> 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 -