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.

Yank and paste does not work with clipboard or other system buffer

See original GitHub issue

Or any other system buffers. To paste/copy something outside jupyterlab one still need to use CTRL+C/CTRL+V in inset mode with manual selection.

It would be good to add registers support: https://www.davidbegin.com/10-vim-registers-to-rule-them-all/

Or do something like set clipboard=unnamedplus (https://stackoverflow.com/questions/11489428/how-to-make-vim-paste-from-and-copy-to-systems-clipboard)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
ianhicommented, May 10, 2021

Hi @banderlog currently this is available via a separate extension: https://github.com/ianhi/jupyterlab-vimrc#jupyterlab-vimrc

After pip install jupyterlab-vimrc you yank to the system clipboard using "+y and also have an option to set unnamedplus=True in the settings. Unfortuantely this currently only works for yanking but not for pasting (see https://github.com/ianhi/jupyterlab_vim-system-clipboard-support/issues/2 for discussion of this)

0reactions
banderlogcommented, May 10, 2021

That is the reason: https://github.com/codemirror/CodeMirror/issues/6341

Looks like workable solution: https://github.com/codemirror/CodeMirror/issues/3075#issuecomment-612319694

But this solution above was proposed by you, author of jupyterlab-vimrc repo and actually included in it 😃)

I’ve created issue in jupyterlab-vimrc since it more probable that it will be implemented there: https://github.com/ianhi/jupyterlab-vimrc/issues/18

I did little research there, I am bad in JS and web development, but from my point of view it can’t be done only in some sort of firefox extension, which is not looks like jupyter-lab friendly way.

Please correct me if I am wrong (still have a hope)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vim copy-paste to system buffer not behaving as expected
I'm having a headache trying to figure out why vim isn't copying to a system buffer. On computerA and computerB, this works as...
Read more >
Copy + Paste (Clipboard) Issues / Not Working? - TechNet
When I highlight the text and right-click to copy (or Edit/copy) it appears to copy, but PASTE is always greyed-out.
Read more >
Yanking to system clipboard does not work
I'm on Ubuntu 20.04.3 LTS, I have +clipboard and +xterm_clipboard in my vim --version , and I have set set clipboard=unnamedplus in my ......
Read more >
Yank/paste to/from system clipboard! : r/vim - Reddit
Is there a way to do that so that 'd' and 'x' don't copy onto the system ... this to work vim must...
Read more >
Copy and Paste in tmux | seanh.cc - Sean Hammond
You can still paste from the system clipboard with Ctrl + Shift + v though, that never breaks. Fortunately we can fix all...
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