On Fri, Feb 6, 2009 at 3:00 PM, Tony Mechelynck <
[email protected]> wrote:
>
>
> The cursor shape changes according to three separate mechanisms:
> - in all GUI versions (running in GUI mode), many shapes are possible,
> varying either the height or the width depending on the 'guicursor' option.
> - In Windows Console version, the height can vary but the width cannot;
> the 'guicursor' option is used for that too.
> - 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). 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.
>
> See:
> :help 'guicursor'
> for GUI and for DOS/Windows console
> :help termcap-cursor-shape
> for non-Windows (-non-DOS) console.
> :echo has('cursorshape')
> to see if the necessary feature is compiled-in
> 1=yes, 0=no
>
>
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.
My cursor seems to always be the color of the foreground. If it's over
nothing then it's the default terminal foreground color. If it's over red
text then it's red, etc. No changes I make seem to have any impact :/
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---