William O'Higgins Witteman wrote:
I'm trying to change the shape of the cursor in console vim. I inquired
about this a few weeks ago, and so provided with the helpful suggestion
of looking into :help termcap-cursor-shape
Well and good, I have a chance to try it out. I was going to start with
the example from the help screen, but making that change in my .vimrc
had no effect. I've done a bit more digging, and now I see that I don't
have a clue what this section of my .vimrc does, or how I can make the
changes I want. Here's the piece of .vimrc:
if &term =~ "xterm-debian" || &term =~ "xterm-xfree86" || &term =~ "xterm"
set t_Co=16
set t_Sf=^[[3%dm
set t_Sb=^[[4%dm
set t_SI = "\<Esc>]12;purple\x7"
set t_EI = "\<Esc>]12;blue\x7"
endif
What do the first three lines of this block do?
More to the point, how do I make my Insert Mode cursor into a pipe "|"
and otherwise the block which I see now?
Thanks.
t_Co is the number of different colors in your terminal; t_Sf and t_Sb
are the strings used to set them (but they will be ignored if t_AF and
t_AB are nonempty).
Most terminals can only change the height of the cursor, not its width;
IOW -- only gvim, not console Vim, can have a pipe cursor.
see
:help term.txt
" and in particular
:help terminal-options
:help termcap-colors
:help termcap-cursor-shape
See also
:help 'guicursor'
" yes, some console versions can use it
Best regards,
Tony.