I have this in my .vimrc

let &t_SI = "\<Esc>[5 q"
let &t_SR = "\<Esc>[3 q"
let &t_EI = "\<Esc>[2 q"

The problem is that I keep the block cursor shape when I exit vim. How can I easily restore the previous cursor shape when I quit or I stop vim?

  • Is your terminal's default cursor shape a vertical bar? – tbodt Feb 21 '17 at 19:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.