Loading ...
Sorry, an error occurred while loading the content.

[BUG] setting long 't_EI' may cause display messed up

Expand Messages
  • lilydjwg
    Hi there, Using following vimrc, start vim using vim --noplugin -u test.vim in tmux and type da , the display will be messed up as shown in this screenshot:
    Message 1 of 1 , Aug 28, 2011
    • 0 Attachment
      Hi there,

      Using following vimrc, start vim using 'vim --noplugin -u test.vim' in
      tmux and type 'da', the display will be messed up as shown in this
      screenshot: http://paste.ubuntu.org.cn/i87266

      set showcmd
      set laststatus=2
      let &t_SI="\033Ptmux;\033\e]12;blue\007\033\\"
      let &t_EI="\033Ptmux;\033\e]12;RoyalBlue1\007\033\\"
      nmap dx <nop>

      This happens when 't_EI' is too long ('blue' instead of 'RoyalBlue1'
      won't cause this), and the final 'nmap' is present. The escape sequence
      is used to change cursor color in tmux.

      This won't happen the second time in the same Vim session as the
      'term_cursor_shape' function checks 'showing_insert_mode'.

      --
      Best regards,
      lilydjwg

      Linux Vim Python 我的博客
      http://lilydjwg.is-programmer.com/

      --
      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
    Your message has been successfully submitted and would be delivered to recipients shortly.