Hi list,
I find that when I execute a shell command in vim via :call system()
or :!command after I copy something to "+(Linux clipboard),
1. the content of the clipboard is wiped, and
2. vim's "+ will be of junk characters if the copyed content has
multi-byte characters. But if there is just ASCII characters, "+ doesn't
change.
I tested on two Fedora 16 machines and one Ubuntu 12.04. They all show
the same behavior. It is the same with my own built vim(7.3.761) too.
I normally open a terminal, use 'watch -n 1 xsel -b' to monitor the
system clipboard, and use vim to edit some file in another terminal
(Use "+yy, !ls, :reg to identify the issue).
I hope someone else can reproduce and identify the issue. I leave some
Chinese characters here for your tests: 中文测试.
--
alick
Fedora 16 (Verne) user
https://fedoraproject.org/wiki/User:Alick
--
You received this message from the "vim_use" 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
Thursday, January 10, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment