On 13/02/09 01:45, pansz wrote:
> Tintin72 写道:
>> Hi,
>>
>> In Vim under Windows, when I shift in insert mode, cursor turn to an
>> underscore _.
>> It's very handy cause I alway know wich mode I'm in.
>> Unfortunately when I run VIm under Linux (Ubuntu), cursor
>> remain the same (square) in command or insert mode and it's confused
>> me.
>>
>> Is there any way to change the shape of the cursor when shifting in
>> insert mode ?
>
> This is specific to the terminal, for example, Konsole in KDE4 can
> change the shape of cursor, try the following:
>
> let&t_SI = "\<Esc>]50;CursorShape=1\x7"
> let&t_EI = "\<Esc>]50;CursorShape=0\x7"
>
> This will give what you want, if you are using ubuntu intrepid you can
> simply run sudo apt-get install konsole.
Anything similar for KDE3 konsole (konsole 1.6.6 in KDE 3.5.10)? The
above doesn't work for me (my cursor remains in block-shape in all
modes). Yet I double-checked it: ":set t_SI? t_EI?" now returns
t_SI=^[]50;CursorShape=1^G
t_EI=^[]50;CursorShape=0^G
with the ^[ and ^G in blue, meaning Escape and Bell respectively.
Best regards,
Tony.
--
Ladybug, ladybug,
Look to your stern!
Your house is on fire,
Your children will burn!
So jump ye and sing, for
The very first time
The four lines above
Have been put into rhyme.
-- Walt Kelly
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---