On Fri, Feb 6, 2009 at 7:12 PM, Garrett Whelan wrote:
>
> On Fri, Feb 6, 2009 at 3:00 PM, Tony Mechelynck
>>
>> The cursor shape changes according to three separate mechanisms:
...
>> - In non-Windows versions of Vim running in Console mode, the cursor is
>> handled by the terminal. Vim can change the cursor between Normal and
>> Insert mode provided that the terminal supports it and that the
>> +cursorshape feature is compiled-in (an underscore or a different color
>> might be possible; a vertical bar is doubtful).

Blinking/non-blinking should also be possible in both real ttys (ie
tty1) and xterms, as should making the cursor be in reverse video.

>> You have to find out
>> which codes your terminal needs to change the cursor, and assign them to
>> the non-standard termcap codes t_SI (start-insert) and t_EI
>> (end-insert). If one or both of them is empty there will be no cursor
>> change. The values will probably depend on the particular terminal
>> you're running in, so you'll probably have to test the 'term' option
>> value when setting those codes.
>
> That's just not working for me. It's a normal xterm(gnome-terminal) but any
> changes I make to t_SI and t_SE have no effect. Even the example from the
> documentation:
>     if &term =~ "xterm"
>         let &t_SI = "\<Esc>]12;purple\x7"
>         let &t_EI = "\<Esc>]12;blue\x7"
>     endif
> does nothing.

Well, there's your proof that gnome-terminal isn't "a normal xterm"
even if it lies and pretends to be one - it's missing tons of xterm
features, and you've just found one.

FWIW, I'd recommend against doing this at all - it won't play nicely
with things that can alter the state of the world without telling vim,
like screen or dvtm, and screen is widely regarded as one of the most
useful terminal applications.

~Matt

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

Reply via email to