Git Product home page Git Product logo

Comments (1)

brunolpsousa avatar brunolpsousa commented on June 12, 2024

Not a bug, that's exactly what unnamedplus does:

unnamedplus	A variant of the "unnamed" flag which uses the
			clipboard register "+" (quoteplus) instead of
			register "*" for all yank, delete, change and put
			operations which would normally go to the unnamed
			register.  When "unnamed" is also included to the
			option, yank and delete operations (but not put)
			will additionally copy the text into register
			"*". See clipboard.

And in Providers:

To ALWAYS use the clipboard for ALL operations (instead of interacting with the "+" and/or "*" registers explicitly):

set clipboard+=unnamedplus

See 'clipboard' for details and options.

If you only want to sync yank and paste operations with the system clipboard, I suggest a custom keymap for this:

local keymap = vim.keymap.set
keymap({ "n", "v" }, "y", '"+y', { desc = "Yank to clipboard" })
keymap({ "n", "v" }, "p", '"+p', { desc = "Paste from clipboard" })
keymap({ "n", "v" }, "P", '"+P', { desc = "Paste from clipboard" })

from gnome-shell-pano.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.