I'd like to be able to copy and paste between native (Cocoa?) MacOS X apps and those running under Mac's internal X server.
Currently I can copy and paste independently. If I select text in an xterm window I can paste it back in any other X based window. Similarly, copying information outside X can be pasted into applications which are also outside X.
As an example, if I (in exactly this order):
- Copy (select using the mouse) "Copy using X selection" in an xterm window
- Copy (Edit | Copy) "Text in Firefox" in Firefox
- Paste (Shift Insert xmodmap) into nano I get "Copy using X selection"
- Paste (Edit | Paste) here I get -> Text in Firefox
- Paste in MacVIM (Edit | Paste) I get "Text in Firefox"
- Paste into /usr/bin/vim (non graphical) I get "Copy using X selection"
How do I enable "clipboard sharing" between X and Cocoa?
The xmodmap I am using to paste in X is:
xmodmap -e "keycode 84 = Insert"
where 84 is the numeric keypad's Enter key. So Shift Enter gives me paste.
xterm
or similar, notvim
or something with its own buffers? Which version of OS X are you running? My clipboard is shared across Cocoa and X11 as expected in 10.5.7.