On 07/04/09 13:55, Dennis Benzinger wrote: > > Hi! > > Am 07.04.2009 13:49, pansz schrieb: >> [...] >> Any one knows how to check in .vimrc whether I'm in KDE4 Konsole or in >> GNOME terminal in a remote ssh session? >> [...] > > I don't know if it works with SSH put you can query the COLORTERM > environment variable: > > :echo $COLORTERM > > Gnome Terminal sets it to gnome-terminal. I don't know what Konsole does. > > > HTH, > Dennis Benzinger
On my system it doesn't set it. Anyway, I suppose that a value of "gnome-terminal" would be rather characteristic. Remains to be seen how to tell xterm apart from konsole. From v:termresponse maybe? Let's see what I get: konsole... ^[[0;115;0c xterm... ^[[0;236;0c gnome-terminal... ^[[1;1704;0c (where the initial ^[ is an "escape" character) so the results are indeed different, but I don't think the criterion can be ported to an unknown system (I mean, you need to make the experiment separately for each installation -- and it may change if you upgrade one of these packages). Best regards, Tony. -- If God is perfect, why did He create discontinuous functions? --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
