Questions tagged [os-clipboard]

Questions about interfacing with the system's clipboard.

For a general overview on how to interface with the systems's clipboard, see: How can I copy text to the system clipboard from Vim?.

113 questions
2
votes
0 answers

Vim `"+y` command to yank into registers `+` and `*` not working in vim-gtk3

The "+y , "*y, "+yy and "+d commands to copy to clipboard do not work for me. I want to copy text from vim and paste outside the text editor on my desktop. Things I have done : I installed vim-gtk3 (the conventional solution to this problem) such…
hexaquark
  • 121
  • 3
2
votes
1 answer

Copying to unnamedplus doesn't work across instances

Whenever I copy with "+y it only works for the instance of vim I am running and I would expect it to write to my system clipboard, that I can access both outside of vim and from other vim instances. I've looked into previous posts on the forum and…
Armin
  • 23
  • 4
1
vote
0 answers

Vim only sometimes choosing to copy to system keyboard

I have the following situation. If I open a file in Vim, say by running vim myfile.tex, select something in visual mode, and do "+y, it is in the system clipboard as one would hope. If however I open a project, say vim -S myproject.vim, in which the…
jdc
  • 141
  • 3
1
vote
2 answers

How can I edit the contents of my clipboard in vim?

Often while editing (say, a post on this network), I find myself wanting to copy something, edit it, and paste it back. At other times, I have some text in my clipboard, but isn't perfect. I would like a quick way to edit it and place it back in the…
D. Ben Knoble
  • 26,070
  • 3
  • 29
  • 65
1
vote
0 answers

Pasting non-text data (image) from system clipboard

I would like to write a plugin which will be triggered at paste from system clipboard if it contains image data. Is it feasible to do this with scripting? My preference is to write in Python, using neovim is also possible. The image would be then…
eudoxos
  • 173
  • 1
  • 4
1
vote
0 answers

Make yanking pipe into an external program

Is it possible to set up an external program as my clipboard? I'd like vim to pipe into it whenever I yank something.
Petr Skocik
  • 251
  • 2
  • 11
1
vote
0 answers

Unable to copy to system clipboard

I'm running vim on a Debian Jessie machine inside of a VirtualBox on my Mac. I'm trying to get yy and p to work so I can copy and paste across different terminal windows by using the system clipboard. Please note the following: 1) echo…
StevieD
  • 1,492
  • 1
  • 16
  • 24
0
votes
1 answer

How can I copy the current filename and line number to the clipboard?

How can I copy the current file name and line number to the system clipboard, formatted like this: relative/path/to/file:123 And how can I map this to a leader key command?
Nathan Long
  • 403
  • 1
  • 3
  • 7
0
votes
2 answers

Vim is polluting clipboard with netrw_dirhist stuff

Every time I launch vim I have this in clipboard: let g:netrw_dirhistmax =10 let g:netrw_dirhist_cnt =8 let g:netrw_dirhist_1=... let g:netrw_dirhist_2=... let g:netrw_dirhist_3=... let g:netrw_dirhist_4=... let g:netrw_dirhist_5=... let…
firedev
  • 2,392
  • 2
  • 19
  • 31
0
votes
0 answers

Online vim via browser, but with copy/cut/paste to/from Windows clipboard

I visited another city and forgot to bring my laptop. A friend offered to let me use his Windows 10 account, but without installing anything (including cygwin from a non-administrator account). It's a non-administrator account on a very…
user2153235
  • 905
  • 5
  • 14
0
votes
1 answer

How to completely disable os clipboard integration

The vim binary shipped with the git for windows package has integration with OS clipboard enabled and I hate it. So many times I attempt to replace a word with something from the clipboard with cw + shiftinsert, only to be frustrated because the cw…
hlovdal
  • 203
  • 2
  • 5
-1
votes
1 answer

How to always paste to clipboard?

I am searching for an option to always paste to the system clipboard when using any kind of yank action, because I want to use Vim as the scrollback buffer for Kitty. I have already tried clipboard=unnamed but it doesn't work.
neolith
  • 133
  • 6
-4
votes
1 answer

How does one change the name of the clipboard register?

I initially posted a question assuming there was something to type that would signal append other than just using upper-case letters. How does one append to the clipboard register in vim? Unfortunately, this resulted in finding out the impossibility…
Jason Basanese
  • 969
  • 1
  • 8
  • 17