An insert in vim on tmux returns this error: E353: nothing in the register *

I have Vim inside Tmux. When I copy text with yy and paste. I get the following error E353: Nothing in register * .

This problem only occurs when using Vim 7.4. However, when using Vim outside of Tmux, this problem does not occur.

In the lateral case, this does not happen when using Vim 7.3 (the vim version installed by OSX 10.9), inside or outside Tmux.

In .vimrc I have:

 set clipboard=unnamed 

In .tmux.conf I have:

 set-option -g default-command "reattach-to-user-namespace -l bash" 
+7
vim tmux
source share
5 answers

In my case, I just fixed this by including the following configuration in .tmux.conf :

 set -g default-command 'reattach-to-user-namespace $SHELL --login' 
+8
source share

Try "*y and "*p .

If you do this often, put the line below in ~/.vimrc to synchronize the system clipboard and the Vim name register:

 set clipboard=unnamed 

See :help registers and :help 'clipboard .

+4
source share

Edit: Actually, it seems only when I run vim in the nerdtrw buffer using vim . . Re-enabling the clipboard in an unnamed seems to fix the problem ( :set clipboard=unnamed ).

I got the same problem. This seems to be a bug in recent versions of vim available through brew ( 7.4.430 and 7.4.430_1 ).

I did not find a workaround and had to roll back to the previous one, which works fine ( 7.4.335 ).

For this:

 brew rm vim brew update cd /usr/local git checkout 2150e2d2a89f79f3ab58490433e91f7a36ebf150 brew intall vim git checkout master brew cleanup 

If you are trying to load vim, 404 , edit the formula file in /usr/local/Library/Formula/vim.rb and replace:

by

0
source share

I am facing the same problem, E353: Nothing in register * using Ubuntu 14.04, which has vim version: 2:7.4.052-1ubuntu3 installed from its default PPA repository.

Worked fine with vim version: 7.3

Work: you can use the following options:

  • Use vim -p to open multiple panels. For example: vim -p file1 file2 and copy and paste if necessary. To move between panels, you can use ": tabn" or ": tabp"
  • If you use the Nerdtree plugin with your vim, then you can also just pull and go to the target file and make a paste.
0
source share

I tried differently, I can get from the Internet to solve this problem. But finally, the solution removes your "set clipboard = uname" configuration in your vimrc. I am trying to find why this works ...

0
source share

All Articles