I've tried VsVim recently. One nice thing I noticed is when
d is entered the cursor shape changes to half-underscore. And after deleting the line with
dd cursor shape restores to block. Is it possible to add this feature to Vim?
In my case it was I think
gvim, on Windows, which made me get used to a different cursor in normal and insert mode.
You did not specify any terminal; I made a small function in my
.vimrc for linux console and xterm.
" Cursor shape ANSI-Codes fu Cursor_tve() if ($TERM == 'linux') au! InsertEnter * set t_ve=^[[?3;0;8c^[[?25h au! InsertLeave * set t_ve=^[[?192;7;50c^[[?25h " yellow "set t_ve=^[[?255;16;245c^[[?25h endif if ($TERM =~ 'xterm' ) set t_SI=^[[4\ q set t_EI=^[[2\ q " for xterm: (just blink) "au! InsertEnter * set t_ve=^[[?25h^[[?12h "au! InsertLeave * set t_ve=^[[?12l^[[?25h endif endfu
(To call it I have
call Cursor_tve() also in .vimrc.)
t_SI for xterm is mentioned in vim's help, try
:h t_SI. The escape sequence is also a bit hard to find.
For only one terminal type you can leave out the
if ($TERM == part
As you see, I first had a yellow cursor. This was neither practical nor did it work well with the shell cursor. Now I have a full cursor for normal mode and a line (xterm) or a quarter block (linux).