Linked Questions

5 votes
1 answer
1k views

Can Vim add to the X11 clipboard or primary buffers without an external utility?

We can copy to both the + and * registers, but this doesn't actually copy the content to X's memory (apparently). If you copy something from Vim using the * or + registers and quit Vim, poof! There's ...
muru's user avatar
  • 25k
7 votes
1 answer
5k views

Compiling Vim from source just enabling clipboard

I have a Debian 7.0 with gnome, and I am fully satisfied with the standard vim version installed on it, except for the lack of +clipboard and/or +xterm_clipboard. I got the sources using mercurial, ...
clem steredenn's user avatar
1 vote
2 answers
3k views

Paste clipboard shortcut in vimrc

I know that I can paste the clipboard in by by typing ctrl-shift-v. The problem is that this is a very counterintuitive shortcut. It requires me to move my hand in a very uncomfortable way. I would ...
john-jones's user avatar
3 votes
2 answers
5k views

Make vim support the Windows clipboard

I've found a lot of information online about this for Linux-Vim but not for the Windows-Vim (not gvim). Whenever I try to copy and paste something in Vim (using y and p), the copies I make do not ...
Jon's user avatar
  • 131
2 votes
3 answers
3k views

How could I enable vim clipboard without sudo and x11 installed?

I am given an account on a new server these days. The new server does not have x11 install, neither do I have sudo. So I cannot install system packages, and I cannot compile with the option -with-x. ...
coin cheung's user avatar
4 votes
1 answer
2k views

How to copy long line from terminal buffer as it is without adding new lines?

I wanted to copy a public key from one machine to the other. I opened up vim and had two terminal buffers - one for each machine. In the terminal in which I had the first machine I went into normal ...
ivan's user avatar
  • 263
1 vote
1 answer
2k views

Vim says I don't have solarized colorscheme whereas I have that

Vim gives me this error :- Error detected while processing /home/piggy/.vimrc: line 23: E185: Cannot find color scheme 'solarized' Press ENTER or type command to continue But I can change to ...
user avatar
3 votes
1 answer
1k views

copy-paste selection locally when editing files on remote headless server

When connected to a remote headless Linux server via SSH, I want to be able to do 3 things: select text using the mouse and copy the selection into my local X clipboard paste from local X clipboard ...
J-S's user avatar
  • 33
1 vote
2 answers
956 views

How can I use tmux for copying if I can't access the system clipboard?

I'm testing out using vim with tmux. One thing that I could do with vim with a split window is yank text from one buffer and paste it into the other. This no longer works when I have vim buffers in ...
StevieD's user avatar
  • 1,492
2 votes
1 answer
197 views

:'<,'> Vs :'>,'>, what do these range arrows in vi visual mode mean?

I am trying to copy the selected text from vim into system clipboard. In visual mode, i pressed :, and the command prompt string changed as, :'<,'> Running :'<,'> !tee >(xsel -b) added :...
Saravana's user avatar
  • 123
7 votes
1 answer
327 views

Can visual select mode be integrated with the Unix selection clipboard?

Is it possible to configure vim (obviously with :set mouse=a) and/or gvim such that the visual selection modes automatically integrate with X's selection buffer? I am aware of how to setup the copy ...
Caleb's user avatar
  • 2,245
0 votes
2 answers
759 views

"Copy" is greyed out in the Terminal menu after "Select All" in "VIM embedded in Terminal"; VIM copy does not work. How to copy the full file text?

I have set VIM as the default editor in the Terminal. I changed the ~/.bashrc: export VISUAL=vim export EDITOR="$VISUAL" You can also set the default editor only for git: git config --...
questionto42's user avatar
2 votes
0 answers
724 views

Copy all text in Vi and then paste it to another application on another system

I connect to Linux server via SSH using Putty terminal. I open a file with Vim and press ggVGy in order to select all text and copy it. But when I try to paste the copied text to Windows Notepad, it ...
kamokoba's user avatar
  • 121
4 votes
1 answer
143 views

Set paste mode when at beginning of line but auto-indent mode when anywhere else on the line?

As per other questions, most of us know that if we want to enter paste mode we can toggle :set paste and :set nopaste. And for auto-indenting we can :set autoindent. However, I was thinking today, I ...
coderintherye's user avatar
1 vote
1 answer
95 views

Choices for pasting

In my local PC I use p in Vim command mode for pasting and it works fine and the :echo has('clipboard') returns 1. But, in the cluster I am working p in command mode, which just inserts a 0 instead of ...
Dimitris Tsiaousidis's user avatar

15 30 50 per page