Fix Vim + Tmux yank/paste on unnamed register -


When using VIM inside a TMX session, I can not do Yakub or paste in the register named Anonymous, go to the registered register Works, but the anonymous name never works.

There is an error:

  E353: nothing in the register *   

Without TMX, the Vime is fine using my current settings How can I fix this so that I can use y then p without specifying the errors and registers?

prefix; such as " AP by a register).

* Anonymous Register is actually named " (double quote). This is just a word which means that you do not have to give it its name to use it (this is the default). You do not have "p to write from an unknown register, just p .

the default value of the clipboard < / Code> is not unnamed , so it's probably coming from some configuration (or plugin). Command : Verbose set clipboard? will show you the script which sets the current value If it is being done in your configuration file, you will not want to do this when you run under tmux Example:

  $ TMUX == '' Set clipboard + = anonymous int   

Alternatively, the in-in- There may be a way to give examples of access to tmux access to the GUI selection / clipboard (like * register and / or anonymous name in the clipboard < / Code>). If you are running Mac OS X, you can see that access to the clipboard for processes running within a tmux session Again, if you are using any other OS or GUI, then you have to find out how Vim usually talks to the GUI and why it is not working (for example X11 Under false display value, probably due to attach to an old session that is running a shell in which there is an out-of-date value).

Comments