when compiled with +xterm_clipboard / +clipboard flags, i can manipulate X primary selection / clipboard via vim registers */+ (for my setup) but only when using xterm/gtk based terminals. i would like support for the appropriate protocol in Konsole too please the lack of support for this feature has been worked around via interaction with the mouse until today's use case where i needed to move a selection from a vertically split vim window. in this case, using the mouse isn't feasible for multiple lines as only entire lines can be selected according to the very helpful 'Sho_' (hein@kde.org) on IRC, the protocol was added for xterm in around 2006 control codes here: http://invisible-island.net/xterm/ctlseqs/ctlseqs.html follow any relevant conventions on: http://standards.freedesktop.org/clipboards-spec/clipboards-latest.txt Reproducible: Always Steps to Reproduce: 1. with vim -i | grep \+xterm-clipboard confirming support in vim 2. make a visual selection in vim 3. type "*p (3 characters!), and assuming vim's * register points to X-primary selection, go and middle-click in another app's text box/widget etc. Actual Results: no vim selection pasted Expected Results: vim selection pasted
[can't edit the initial report] step 3 in the 'steps to reproduce' should be "*y ..yanking text 'into' the pri. sel.
This may be a worthwhile task, but if it's only vim support you seek, vim can read/write the X clipboard directly with its +X11 support, no term support required. In some distributions this means you have to run the gvim binary as vim (e.g. alias vim=gvim) but otherwise this should be transparent.
Yeah, we went over that on IRC (it's vimx on Fedora, etc.)