I am trying to set the cursor in insert mode to be a thin vertical line and I am unable to. I have tried this in my .vimrc file:
set guicursor+=i:ver100-iCursor
This code in my /home/el/.vimrc
worked for my console:
if $TERM_PROGRAM =~ "iTerm"
let &t_SI = "\]50;CursorShape=1\x7" " Vertical bar in insert mode
let &t_EI = "\]50;CursorShape=0\x7" " Block in normal mode
endif
Which does this for me:
Source:
https://hamberg.no/erlend/posts/2014-03-09-change-vim-cursor-in-iterm.html