question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for `clipboard=unnamed` / using system clipboard for unnamed register

See original GitHub issue

A setting to use the unnamed register as alias for the * register. So yy for example copies to current line to the system clipboard, and p would insert from the clipboard.

Should be a user setting (e.g. useSystemClipboard), and disbaled by default.

Further readings:

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
aminroostacommented, Aug 25, 2016

@rebornix Sure, I will send a pr tonight 😉

3reactions
bufkecommented, Sep 20, 2016

This doesn’t appear to be working for me. When enabled yank no longer seems to do anything. After a yank I’m unable to paste in the system or in VS Code (for instance p). Using Ubuntu 16.04. My settings are:

{
    "vim.useCtrlKeys": true,
    "vim.useSystemClipboard": true
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Add support for vim option "set clipboard=unnamed" to unify ...
Vim has an option to link the default (unnamed) register with the system clipboard, by putting the following in .vimrc: set clipboard=unnamed. C...
Read more >
Accessing the system clipboard | Vim Tips Wiki - Fandom
When performing copy, cut, and paste with commands like y, d, and p, by default Vim uses its own location for this, called...
Read more >
Copying to clipboard with clipboard=unnamed set
Using clipboard=unnamed requires that your copy of Vim has system clipboard support built in. You can check this with the command:
Read more >
PSA: set clipboard=unnamed : r/vim - Reddit
An alternative I like is to use Tmux to copy/cut/paste to/to/from the system clipboard. There is a visual mode which provides a unified...
Read more >
What is difference between Vim's clipboard "unnamed" and ...
On Mac OS X and Windows, the * and + registers both point to the system clipboard so unnamed and unnamedplus have the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found