robbyoconnor/vim-fakeclip — pull request #1 by congma (2014-10-19 13:06:37+00:00)
Title: Distinguish clipboard from primary selection on X11 systems.

Hi Robert,

This is my patch for vim-fakeclip on X11 systems. With this patch, the `*`
and `+` registers will access different X11 selections, thus better emulating
the behavior of Vim with X11 GUI.

On X11 systems, there are actually three distinct "clipboards", or X
selections, namely the `PRIMARY`, `SECONDARY` and `CLIPBOARD`
selections. To emulate Vim's behaviour under X11 (see vim documentation
`|quote+|`), we now use the `+` register for accessing the
`CLIPBOARD` selection, and the `*` register for the `PRIMARY` selection.

On non-X11 systems, the distinction is probably moot. Therefore, we try
to do nothing new, and both the `+` and the `*` registers will access
the same clipboard.

Does that look OK to you?

Best wishes,
Cong.