When you quit vim in X11-based systems, you lose any data that was
copied from vim to the system clipboard. You can find more information
about this bug and how to fix it at
https://wiki.ubuntu.com/ClipboardPersistence.

Steps to Reproduce:
Pre-requisite: Machine running an X11-based window manager, without
extended clipboard manager such as Klipper. Tested on Ubuntu Lucid.

1. Copy text to system clipboard in vim using the + register. For
instance, you can grab a line with <Esc>"+yy
2. Paste it to another window, this works as expected.
3. Quit vim.
4. Try to paste, there is now nothing in the clipboard.

This is also reproducible in vim-gtk and vim-gnome.
Note that copying done with a right-click in vim or gvim does work,
because that's not handled by vim directly.

I'm trying to fix the bug by adding calls to
gtk_clipboard_set_can_store and gtk_clipboard_store to gui_gtk_x11.c,
but I haven't had much luck so far. I'd really appreciate any input I
could get from more experienced developers.

Thanks!
- Sarah Strong

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