On 16/03/2012 03:50, Gary Johnson wrote:
On 2012-03-15, Mike Williams wrote:
Hi,
I am using a self built version of VIM on centos 5.7, latest and
greatest from the mercurial repo. It was built with the following
config:
./configure --enable-gui=GTK2 --enable-cscope --with-features=big
When I start VIM with gvim or vim -g I get an escape sequence in the
terminal windows (esc has been replaced with ^] to show the full byte
sequence):
^][m^][33m^][44m^][1m^][39;49m^][m^]|16H^]|8H^]|4H^]|31H^]|2h^]|31H
I am using Gnome and Gnome terminal with $TERM to xterm, should that
be relevant. And FTR I get the same/similar from true xterm.
Using vim in the terminal works fine and I get syntax coloring no problem.
Bashes with a cluestick very welcome. TIA
If I understand correctly, you start gvim or vim -g, then you start
a shell with :sh. At that point you see the escape sequence. If
so, that's because Vim's terminal emulation in GUI mode is very
limited. It doesn't understand the escape sequences used to control
attributes such as color. Instead, it just renders each character
individually.
This explained a little in
:help gui-shell
Those escape sequences are probably part of your shell's prompt
(PS1), that in a standard color terminal cause different parts of
the prompt to be in different colors.
This is just starting gvim and not doing anything else in VIM. I have
also tried starting with -u NONE and -U NONE and I still get the escape
sequences. My shell prompt PS1 is just '$PWD$ ' - setting it to just '>
' didn't affect the issue either.
Ok, sounds like a weekend investigation.
TTFN
Mike
--
Nothing is so firmly believed as that of which we know least.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php