I'm using (roughly) the same config for my mac and my ubuntu machine. I use
set clipboard=unnamed,unnamedplus
To conveniently share vim's clipboard with the system clipboard. However, lately the clipboard sharing broke under Mac OS X.
I have no idea what I did to break it, it still works fine under ubuntu. I've tried completely removing and reinstalling vim (via homebrew), deleting my .vimrc
and .zshrc
files, and still it doesn't seem to work.
Now, when I have
set clipboard=unnamed,unnamedplus
I cannot paste at all with vim. When I set
set clipboard=
then I can at least paste in vim, but of course it doesn't share the system clipboard (duh). Using :reg
confirms that with anything other than set clipboard=
, nothing is written to vim's registers. :version
gives me +clipboard
and +xterm_clipboard
. I've also tried it in iTerm2 and Terminal.app, both in and outside of tmux (same results). Also, manually copying to the registers ("*yy
, "+yy
) didn't work.
Interestingly, the the GUI-version (MacVim 7.4-74
, also installed via homebrew) still functions fine in this regard, I can happily copy/paste to/from the system register there.
Do you guys have any ideas? Cause I'm desperate at this point...
Here's my .vimrc
: https://github.com/DeX3/dotfiles/blob/master/.vimrc
mvim -v
will work in the terminal.mvim -v
it works! Both in and outside of tmux! Boy am I glad... I'm just gonna alias that now. No idea what broke it in the first place, but I'm just glad this works. Thanks! If you make your comment an answer, I'll accept it.