Raimondi / delimitMate

Vim plugin, provides insert mode auto-completion for quotes, parens, brackets, etc.
http://www.vim.org/scripts/script.php?script_id=2754
1.98k stars 117 forks source link

Cursor flash when typing <BS> with custom cursor in terminal #231

Closed bitzip closed 8 years ago

bitzip commented 8 years ago

Terminal: iTerm2 .vimrc

if exists('$TMUX')
  let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\"
  let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\"
else
  let &t_SI = "\<Esc>]50;CursorShape=1\x7"
  let &t_EI = "\<Esc>]50;CursorShape=0\x7"
endif

Could I fix this issue in delimitMate? Thanks.

Raimondi commented 8 years ago

Not sure how that is related to delimitMate, but I don't see any flashing with the following:

if exists('$TMUX')
  let &t_SI = "\<Esc>]50;CursorShape=1\x7"
  let &t_EI = "\<Esc>]50;CursorShape=2\x7"
else
  let &t_SI = "\<Esc>]50;CursorShape=1\x7"
  let &t_EI = "\<Esc>]50;CursorShape=2\x7"
endif
bitzip commented 8 years ago

@Raimondi you can notice the cursor is switching from "1x7" to "2x7" all the way.

untitled

Raimondi commented 8 years ago

Here it doesn't switch, at all.