In vim on xterm, yanking string that have multibyte charactors then
paste into other GUI apps will make the string garbled. Say I have

    测试

in file, yank it into "* and "+ and paste into browser will get the
weird string:

    o$(A2bJT

But paste into xterm itself fine.

Typing "测试" directly in xterm outside vim then yank it with mouse
will be fine when paste it into other GUI apps.

I also notice, the yanking is fine for xterm, but after leaving vim, the string
will become garbled even when paste in xterm.

When copy charactors from other GUI apps, paste into vim with middle mouse 
click will be ok, but with "* or "+, string becomes garbled for multibyte 
charactors.



OS: 8.1-STABLE

vim version:
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Dec  4 2010 12:01:37)
Included patches: 1-62
Compiled by [email protected]
Big 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 
+conceal
+cryptv +cscope +cursorbind +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 -lua +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 +persistent_undo +postscript +printer -profile -python 
-python3
+quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent -sniff 
+startuptime
+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_interact +xterm_clipboard -xterm_save
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/local/share/vim"
Compilation: cc -c -I. -Iproto -DHAVE_CONFIG_H   -I/usr/local/include  -O2 
-pipe -march=pr
escott -fno-strict-aliasing -march=prescott -D_FORTIFY_SOURCE=1  
-I/usr/local/include
Linking: cc  -L/usr/local/lib -R/usr/local/lib -L/usr/local/lib -Wl,--as-needed 
-o vim
   -lSM -lICE -lXpm  -lXt -lX11  -lXdmcp -lSM -lICE  -lm -lelf  -ltermlib 
-liconv -lintl

-- 
Regards,
Yue Wu

Key Laboratory of Modern Chinese Medicines
Department of Traditional Chinese Medicine
China Pharmaceutical University
No.24, Tongjia Xiang Street, Nanjing 210009, China

-- 
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

Raspunde prin e-mail lui