Oni: Linux: Middleclick paste

Created on 4 Dec 2017  路  5Comments  路  Source: onivim/oni

It would be very nice to support Linux-like middleclick paste. I'm very used to middleclick paste the current clipboard contents.

Behavior in Terminals and GVIM:

  • Command mode: Insert directly on mouse-position
  • Insert mode: Insert on textcursor-position
enhancement help wanted linux

Most helpful comment

@topaxi As a workaround you can use the * register.

  • In insert mode: <C-R>*
  • In normal mode: "*p

All 5 comments

@topaxi As a workaround you can use the * register.

  • In insert mode: <C-R>*
  • In normal mode: "*p

Thanks for the workaround, @badosu !

Thinking of #973 - do you think this makes sense to be something we provide as part of our default configuration, on Linux?

@bryphe This is not something actually related to Vim, except the integration from X11 to the * register so I would not say it's related to #973.

This is the behaviour expected for any app that runs under X11 (that probably will or should not be expected to work when Wayland gets mainstream usage), and I was surprised that electron did not support it by default.

Anyway, if it's an easy enough fix should make the linux experience a lot better.

Just one thing that is important to keep in mind, usually there are two registers the normal clipboard (C-C, C-V) and this 'selection clipboard'.

The solution integrated by atom does not seem to be the best one, so I recommend atom/atom#3027 as a better reference.

There's an even better way, that is to use the same thing that Vim uses (the * register). If it's not supported by your vim configuration then it probably should not on Oni.

Was this page helpful?
0 / 5 - 0 ratings