On Sat, Mar 28, 2009 at 8:02 AM, André Scholz wrote:
>
> Hello,
>
> as many others, i was interested in changing the cursor shape. For KDE4
> and GNOME i found these solutions:
>
> In KDE4 : Put
>
> <code>
>  let &t_SI = "\<Esc>]50;CursorShape=1\x7"
>  let &t_EI = "\<Esc>]50;CursorShape=0\x7"
> </code>
>
> into your vimrc.

That won't play nicely with gnu screen, or with dvtm, or any of the
other terminal multiplexers out there...

> In GNOME 2.26 : Put
>
> <code>
> if has("autocmd")
>  au InsertEnter * silent execute "!gconftool-2 --type string
> --set /apps/gnome-terminal/profiles/Default/cursor_shape ibeam"
>
>  au InsertLeave * silent execute "!gconftool-2 --type string
> --set /apps/gnome-terminal/profiles/Default/cursor_shape block"
>
>  au VimLeave * silent execute "!gconftool-2 --type string
> --set /apps/gnome-terminal/profiles/Default/cursor_shape ibeam"
> endif
> </code>
>
> into your vimrc. (In case they get wrapped in this post: these are five
> lines.) If you use more than one profile in gnome-terminal, you might
> have to tweak this a little.

Unless I'm misunderstanding something, this would not only work
improperly when combined with tools like screen and dvtm, but also -
when you have multiple terminals open it would change the cursor shape
in all of them!

~Matt

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

Reply via email to