tmux显示^ [[I ^ [[O当失去对ubuntu的关注时

时间:2014-10-04 20:17:03

标签: vim ubuntu-14.04 tmux

我最初虽然这是一个vim问题,但似乎是tmux问题。 我已经执行并使窗口失去焦点然后重新获得它:

$ sleep 100
^[[I^[[O

$ echo $TERM
screen

以下是我尝试的选项

set mouse-utf8 off
set -g status-utf8 on
setw -g utf8 on

我在vim中看到的结果

我用vim -u NONE测试了我的vim,所以我不认为这与我的.vimrc配置有关。我也只在我的Ubuntu机器而不是我的CentOS机器上看到这个问题:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
NAME="Ubuntu"
VERSION="14.04.1 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.1 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

简单地为我重现这个问题。我只需在任何文本上键入一些东西,然后单击另一个窗口(或C-TAB),然后返回到vim。我正在附上截图。

我用-V9选项测试了事件,我看到s:正在触发TextChanged()。这是输出:

E349: No identifier under cursor
E39: No identifier under cursor
Type  :quit<Enter>  to exit Vim
1 line less; before #2  6 seconds ago
--No lines in buffer--

  1:    2 afwefasdf

Type  :quit<Enter>  to exit Vim


  1:    1 asdfjkq;wr

有没有办法让我在不影响其他插件的情况下保持沉默?

这是我的vim版本: vim --version

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan  2 2014 19:39:32)
Included patches: 1-52
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by buildd@
Huge version without GUI.  Features included (+) or not (-):
+acl             +farsi           +mouse_netterm   +syntax
+arabic          +file_in_path    +mouse_sgr       +tag_binary
+autocmd         +find_in_path    -mouse_sysmouse  +tag_old_static
-balloon_eval    +float           +mouse_urxvt     -tag_any_white
-browse          +folding         +mouse_xterm     -tcl
++builtin_terms  -footer          +multi_byte      +terminfo
+byte_offset     +fork()          +multi_lang      +termresponse
+cindent         +gettext         -mzscheme        +textobjects
-clientserver    -hangul_input    +netbeans_intg   +title
-clipboard       +iconv           +path_extra      -toolbar
+cmdline_compl   +insert_expand   -perl            +user_commands
+cmdline_hist    +jumplist        +persistent_undo +vertsplit
+cmdline_info    +keymap          +postscript      +virtualedit
+comments        +langmap         +printer         +visual
+conceal         +libcall         +profile         +visualextra
+cryptv          +linebreak       +python          +viminfo
+cscope          +lispindent      -python3         +vreplace
+cursorbind      +listcmds        +quickfix        +wildignore
+cursorshape     +localmap        +reltime         +wildmenu
+dialog_con      -lua             +rightleft       +windows
+diff            +menu            -ruby            +writebackup
+digraphs        +mksession       +scrollbind      -X11
-dnd             +modify_fname    +signs           -xfontset
-ebcdic          +mouse           +smartindent     -xim
+emacs_tags      -mouseshape      -sniff           -xsmp
+eval            +mouse_dec       +startuptime     -xterm_clipboard
+ex_extra        +mouse_gpm       +statusline      -xterm_save
+extra_search    -mouse_jsbterm   -sun_workshop    -xpm
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -o vim        -lm -ltinfo -lnsl  -lselinux  -lacl -lattr -lgpm -ldl    -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions

vim crapping out on s:TextChanged()

1 个答案:

答案 0 :(得分:0)

好的,在这个问题上度过了半天。我决定从1.8开始upgrade to tmux 1.9a并解决问题。我不知道为什么,但CentOS受1.8的影响。