Cursor changes its shape while typing in insert modes #124

Closed
frace opened this Issue Mar 27, 2013 · 5 comments

Projects

None yet

2 participants

frace commented Mar 27, 2013

I use iTerm2 with vim 7.3 and setup vim to switch the cursor from a block (normal mode) to a pipe shape in insert modes. When delimitMate is enabled and I'm typing something while being in insert mode the cursor shape changes on each keystroke from pipe->block->pipe.

Unfortunately that's a "bit" distracting and irritating. Therefore it would be nice if that bug could be resolved.

If you need any additional information please let me know.

Owner

I can't reproduce that. Can you setup a minimal configuration where the issue is present and share said configuration with me?

frace commented Mar 27, 2013

Well after reading your comment I have to admit that I wasn't quite accurate describing my problem. The described effect appears when I'm in insert mode and move the cursor with arrow keys.

Nevertheless here is a minimal config which should reproduce the problem:

set rtp+=~/.vim/bundle/vundle/
call vundle#rc()

filetype off

Bundle "gmarik/vundle"
Bundle "Raimondi/delimitMate"

filetype plugin indent on

let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
@Raimondi Raimondi closed this in eb7738e Mar 27, 2013
Owner

You should still see the cursor change on the first time you press an arrow key after autocompleting a paren or bracket, but the following uses would be "normal".

Let me know how it works for you.

frace commented Mar 27, 2013

Thanks for the quick fix!
Now it works like expected when navigating with the arrow keys. Even after autcompleting a paren/bracket. But I just recognized the effect appears when using backspace and tab keys in insert mode, too.

Owner

The issue will not go away completely due to the way the mappings are set up. I restricted where will cause the flicker, just inside empty pairs..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment