1
2
I use cygwin on Windows7 to open a ssh session to my linux box. When I edit a file with vim, I don't have color, only kind of gray bold.
I have colors when I do a ls
into my ssh session.
I have also colors when I edit files from a ssh session from my linux box to my linux box.
I modified the shortcut on Window7 to run cygwin in 256 colors, no effect.
Do I need to set an environment variable on my cygwin session ?
Edit:
On Cygwin and On Fedora when "sshed" from Gygwin : TERM=cygwin
Maybe. What does
echo $TERM
report on the Windows machine and on the Linux machine? What terminal do you run ssh in (a Windows console,rxvt
, ...)? – Gilles 'SO- stop being evil' – 2010-11-25T01:49:00.260Are you invoking Vim as "vi" or "vim" on the command line? Many distributions have a stripped down version of Vim installed as "vi" that does not support highlighting, plus a complete version installed as "vim". – Heptite – 2010-11-25T02:10:48.033
@Heptite I use
vim my_file
– Luc M – 2010-11-25T03:22:40.523@Gilles Both xterm are set to cygwin by default. I use ssh into a shortcut of cygwin. It's pointed to a bat file that executes
bash --login -i
. – Luc M – 2010-11-25T05:20:58.000