Reputation: 11672
I would like to get a thin cursor in console vim - I tried the approaches described in Setting the cursor to a vertical thin line in vim, but that didn't seem to work out, perhaps because they were more meant for gvim.
This is on Linux Mint 17.3 - gnome-terminal
v3.6.2
Upvotes: 0
Views: 594
Reputation: 4212
This post has detailed steps for most terminals.
http://vim.wikia.com/wiki/Change_cursor_shape_in_different_modes
I use iTerm on OS X, so I have following in my vimrc
file.
if exists('$TMUX')
let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\"
let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\"
else
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
endif
Upvotes: 2