I use vim in a few different contexts; typically, I like to put this in my
let &t_ti.="\<Esc>[1 q" let &t_SI.="\<Esc>[5 q" let &t_EI.="\<Esc>[1 q" let &t_te.="\<Esc>[0 q"
This makes it so that insert and normal mode use different cursors (normal mode is a block cursor and insert mode is a vertical line). This works for me in mintty with cygwin, xterm, and also rvxt just fine. However, whenever I use GNU screen, my cursor no longer changes. I've seen references to fixing this for tmux (for instance here: Cursor shape under vim + tmux), but nothing I've tried for Screen has worked. For now, I'm using this in my
"Underline currently edited line if !has("gui_running") :autocmd InsertEnter * set cul :autocmd InsertLeave * set nocul endif
That makes it so that when in insert mode the current line is underlined (the
:has("gui_running") prevents it from taking effect in gvim). I also use
set laststatus=2 to keep the status bar on the bottom, which also helps. I just wish it worked a bit more like gvim. Has anyone found a fix for this?