Search code examples
cygwinvim

Sharing System Clipboard with vim under cygwin


I built a pretty good cygwin setup under Windows7. I installed vim under cygwin. Now, I can't share the system clipboard with vim. vim --version gives:

+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+xsmp_interact +xterm_clipboard -xterm_save

I tried setting set clipboard+=unnamed inside my .vimrc but it was no use. I tried P, "+p, *p and "*p but none of these pasted from the system clipboard. However, pressing SHIFT+Ins on cygwin prompt pastes from system clipboard. Am I missing something?


Solution

  • Install the plugin fakeclip. This will enable the system clipboard behaviour to work in cygwin.