Linked Questions

11
votes
1answer
12k views

How do I use the system clipboard with Vim in Arch Linux? [duplicate]

I am using Vim on Arch Linux through urxvt. Since there is no "Ctrl-V" or "Ctrl-Shift-V" support in urxvt, there is no way for me to paste things I have copied from my browser (let's say) into my vim ...
0
votes
1answer
5k views

How to paste from an external source on VI/VIM [duplicate]

I'm using VI right now to create a php file in AWS. I wanted to know if there was any way I could paste (as in copy/paste) an array from another file into my VI on PuTTY. The program is supposed to ...
3
votes
1answer
3k views

Can't yank into * or + registers [duplicate]

I'm trying to yank to the system clipboard on Ubuntu 14.04. I can't yank into the + or * registers, though. Every time I visually select my text and type "*y or "+y the indicator on the bottom right ...
2
votes
2answers
515 views

vimscript: how to get selected text in a register in normal mode? [duplicate]

I am trying to get the mouse selected text in a register in normal mode. If the selection is a substring, only the selection should be copied, not the complete word. Currently the script has: normal!...
1
vote
0answers
555 views

How can I reliably copy and paste between vim and other programs? [duplicate]

I have a hard time just copying and pasting between vim and other programs (firefox, chrome, gnumeric) as well as other instances of vim. Normally I try to copy/yank with "+y and paste with "+p. ...
0
votes
0answers
332 views

System clipboard not working via ssh [duplicate]

I work on a remote server and would like to yank stuff to the server's clipboard. However "+y gives me an error flash (visual terminal bell) and when quitting vim, I can't paste in the terminal. ...
0
votes
1answer
211 views

How to merge OS'es clipboard with Vim's one? [duplicate]

How can I merge OS clipboard and Vim's one? I want them to be the same, so that I don't have to use "*y or "*p or "*d, instead just y, or p or d. How can I do that?
2
votes
0answers
124 views

Ctrl+Ins keybinding won't work in Vim, does in gVim? [duplicate]

I have the following in my .vimrc (I don't recall where I found the original): " Cut, Copy, Paste vnoremap <S-Del> "+x vnoremap <C-Insert> "+y If I use Shift+Cursor keys to ...
0
votes
1answer
87 views

Vim yank and paste via a shared file [duplicate]

I posted this question on StackOverflow first, as I did not know about "Vi and Vim beta". How to augment Vim yank and paste, so when I yank, Vim writes the content to a file? When I paste, it uses ...
1
vote
0answers
58 views

How to find out the default system copy register? [duplicate]

I want to know how to find the default copy register on any machine. I ssh into different machines and use vi. But on some of them the "+ and/or "* registers don't work. Also when I can use my mouse I ...
0
votes
0answers
37 views

How to set system cut-buffer clipboard as default in vim? [duplicate]

I usually want to share my clipboard between vim and other applications (like a web browser) so that I can yank/paste the information easily. So questions, How do I set the default behavior of vim ...
1
vote
0answers
28 views

How to get vim to use the same register as X? [duplicate]

I would like to be able to yank and paste text from and to X clipboard (webbrowser, email client etc), is there an easy way to fuse the registers to have a single clipboard ?
1
vote
0answers
22 views

Copy/paste across terminals in nvim? [duplicate]

How do you copy/paste a piece of text across different terminals in nvim (neovim)?
0
votes
0answers
17 views

Cannot seem to copy paste - using gg > yG [duplicate]

Screen attached of two terminal windows: I would like to copy the 3 lines on the left and drop them into the window on the right. Tried gg to go to the top then yG. I get a message '3 lines yanked' ...
0
votes
0answers
13 views

How do I get vim-gnome on Mac to enable copying to clipboard? [duplicate]

I am trying to enable copying to clipboard on mac using vim. Apparently vim normally does not come with this feature (and vim-gnome does). How do I get vim-gnome for mac to enable copying to clipboard?...

15 30 50 per page