X 剪贴板
跳转到导航
跳转到搜索
程序间共享
When you copy something, the applications just flags itself as "owning" the clipboard ("*) or primary ("+) selection. When you paste, the application receiving the paste checks whether any other application has claimed ownership of the proper selection and, if so, requests that application to provide the copied text.
If you close the application which performed the copy, then there's no way to request that text from it. So some applications, like Vim and xterm, will also store the copied text into a deprecated facility called a cut buffer when they lose ownership of the selection (like when they quit). The problem here is that the cut buffer MUST be latin1 encoded.
来源:vim_dev@googlegroups.com 邮件列表