This page looks best with JavaScript enabled

How to Add Block Cursor in Vim Specially in Gitbash or Cygwin Vim Editor

 ·  ☕ 1 min read  ·  ✍️ shibu

.vimrc

In windows gitbash vim / Cygwin vim / linux subsystem terminal, switching between line cursor and block cursor not happened automatically.

I feel uncomfortable when writing inside vim. since, I can’t distinguish between command mode and normal mode.

To get a block cursor in Vim in the Cygwin terminal write following code in .vimrc file

1
2
3
4
let &t_ti.="\e[1 q"
let &t_SI.="\e[5 q"
let &t_EI.="\e[1 q"
let &t_te.="\e[0 q"
Share on

Shibu Deb Polo
WRITTEN BY
shibu
Web Developer