狀況:
在 X terminal 下使用 vim 編輯文章,發現 mouse 中鍵的 copy&paste 失效。這是第一次碰到這種情形,尚未查出是什麼原因造成的。
:set
--- Options ---
ambiwidth=double helplang=en pastetoggle=<F9> ttyfast
autoindent history=100 ruler ttymouse=xterm2
backspace=2 hlsearch scroll=11 viminfo='20,"100
backup incsearch showcmd visualbell
cursorline maxcombine=6 showmatch t_vb=
nofoldenable mouse=a synmaxcol=0
backupdir=~/tmp/vim-bak
fileencodings=ucs-bom,utf8,big5,big5-hkscs,prc,japan,korea,latin1
formatoptions=mtcql
printmbcharset=ETEN
printmbfont=r:MOESung-Regular
printoptions=paper:A4
termencoding=utf-8
:ver
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Nov 27 2008 01:23:14)
Included patches: 1-49
Compiled by Zenwalk
Huge version without GUI. Features included (+) or not (-):
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+cryptv +cscope +cursorshape +dialog_con +diff +digraphs -dnd -ebcdic
+emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path
+float +folding -footer +fork() +gettext -hangul_input +iconv +insert_expand
+jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap
+menu +mksession +modify_fname +mouse -mouseshape +mouse_dec +mouse_gpm
-mouse_jsbterm +mouse_netterm -mouse_sysmouse +mouse_xterm +multi_byte
+multi_lang -mzscheme -netbeans_intg -osfiletype +path_extra +perl +postscript
+printer +profile +python +quickfix +reltime +rightleft -ruby +scrollbind
+signs +smartindent -sniff +statusline -sun_workshop +syntax +tag_binary
+tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title
-toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
+vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp
-xterm_clipboard -xterm_save
暫時解決辦法:
按 Shift 鍵後,再按滑鼠左鍵來反白,這樣,反白的內容就會跑進剪簿中,就可以用滑鼠中鍵 paste 了。