Vim changes cursor in insert mode

I’m not sure what the terminology is for him, but on Vim the “cursor” always resembles the insert / replace cursor instead of the blinking cursor that I’m used to in other graphic editors. Is there any way to change this in insert mode?

+5
source share
4 answers

I connected using iTerm on mac. There seems to be a setup in iTerm. Quick change and her work.

0
source

The gcr parameter does this, although I'm not sure exactly how to configure it to get the desired results.

:help gcr

If you read the manual and play with it, you can understand it.

. , gcr .vimrc

+4

vim iterm ( tmux)

, tmux, : https://github.com/sjl/vitality.vim

0

, , , , , .

iTerm2 Vim Mac. , .

, MacVim. , .vimrc, :

let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_SR = "\<Esc>]50;CursorShape=2\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"

enter image description here

But, as you can see, there was a delay when pressed ESCto exit insert mode back to normal mode and show the block again as a cursor. To fix this, I found this:

set ttimeout
set ttimeoutlen=1
set listchars=tab:>-,trail:~,extends:>,precedes:<,space:.
set ttyfast

And now it works pretty well, as you can see:

fix delay going back to block as cursor

I hope this can help anyone else! 👻

0
source

All Articles