Vim how to change the cursor from char block to pre pipe/line

8,540

Solution 1

If you are talking about vim inside a shell, you should configure the cursor style in your terminal emulator. Even if you do so, Vim can't toggle the cursor style on-the-fly. That's a limitation of the terminal itself.

If you are talking about the graphical version of vim, called gvim (or macvim), then look at Nupraptor answer.

BTW, I think this question is better suited to the Superuser.com site.

Solution 2

This plugin for vim will actually change the cursor on the fly in iterm (and tmux)

It has a few bugs if you're in tmux, but works great outside of it: https://github.com/sjl/vitality.vim

Share:
8,540

Related videos on Youtube

Derek Organ
Author by

Derek Organ

Updated on September 17, 2022

Comments

  • Derek Organ
    Derek Organ almost 2 years

    Not sure what the terminology is for it but on Vim the 'cursor' is always like an insert/replace cursor instead of the blinking line cursor I'm used to in other gui editors. Is there any way to change this when in insert mode?

  • Derek Organ
    Derek Organ over 13 years
    I found the option in iterm
  • Shawn Erquhart
    Shawn Erquhart over 7 years
    Should be the accepted answer.