On 11/05/2016 06:59 PM, stan wrote:
This characteristic of X is a pain in gvim where it pastes at the
copy
point instead of the last insertion point, unlike vim in a console,
where it pastes at the current insertion point. i.e. in gvim, X moves
the current insertion point to the double click, while in a console the
insertion point remains where it was. A big difference in efficiency
when editing, especially when doing quick variable name copies to avoid
typing.
This doesn't happen in an X term since there is only one insertion
point. I just checked, and it pastes properly there.
In gvim, X doesn't move the insertion point. Gvim is a graphical
application, so it knows fully about the mouse. Vim is a console
application and does not know about the mouse. In that case, the middle
click is interpreted by the terminal program which feeds the clipboard
contents as keyboard input. As a very clear example, compare the
difference between gvim and vim when pasting while in command mode.