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.
Regards,
Gary
--
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