Vim how to change the cursor from char block to pre pipe/line
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
Related videos on Youtube
Derek Organ
Updated on September 17, 2022Comments
-
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?
-
Dennis Williamson over 13 yearsPlease don't cross-post.
-
laktak over 7 years
-
-
Derek Organ over 13 yearsI found the option in iterm
-
Shawn Erquhart over 7 yearsShould be the accepted answer.