On Sat, Jun 6, 2009 at 6:13 AM, Tintin72 wrote:
>
> Hi,
>
> I want to change the shape (or color) of the cursor when shifting in
> insert mode, (I'm under XUbuntu).
>
> I tried the doc example in my vimrc:
>
> if &term =~ "xterm"
>  let &t_SI = "\<Esc>]12;purple\x7"
>  let &t_EI = "\<Esc>]12;blue\x7"
> endif
>
> but it doesn't work.

It works fine in xterm.

> I don't understand what is exactly the XFCE terminal, xfce4-terminal
> or xterm.

"XFCE terminal" is the name of the terminal provided by the
xfce4-terminal binary, which is usually found as
/usr/bin/xfce4-terminal

"xterm" is the name of the terminal provided by the xterm binary,
which is usually found as /usr/bin/xterm

> If I type: echo $TERM I get xterm

Because the XFCE terminal lies and pretends to be an xterm.  They
think that their terminal emulation is "close enough" to xterm's that
most people will never notice the difference.  You've just found a
spot where they're clearly wrong.

> Can someone help me ?

You're trying to use a feature that XFCE terminal just doesn't have.
Moreover, it's worth noting my usually warning about changing the
cursor style when changing modes - it won't play nicely with software
like GNU Screen, and screen is IMHO the biggest reason to prefer
terminal vim over gvim.

~Matt

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to