On 11/02/09 10:02, Tintin72 wrote:
> 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 ?
>
>
> Thanks.

In gvim, or in Console Vim for Windows, you can do it with the 
'guicursor' option, which is well documented in the Vim help itself.

In versions of Vim running in Console mode on other OSes than Dos / 
Windows (and even Vim for Cygwin is "non-Windows" in this context IIUC), 
you can change the aspect of the cursor between Normal and Insert modes 
if you know the termcap codes to send for it. Which codes to use will 
usually vary from one terminal to the next, and you have to get (if you 
can find it) the documentation for whatever console terminal or terminal 
emulator you want to use. The relevant Vim help paragraph is 
|termcap-cursor-shape|. It gives some codes to change the cursor colour 
on true xterm consoles, but as was found a day or two ago on this very 
list, they don't apply to gnome-terminal, which pretends to be xterm but 
isn't.


Best regards,
Tony.
-- 
Seleznick's Theory of Holistic Medicine:
        Ice Cream cures all ills.

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

Reply via email to