Yank and paste does not work with clipboard or other system buffer
See original GitHub issueOr 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:
- Created 2 years ago
- Comments:7
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 setunnamedplus=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)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)