9

I found solution for iterm+vim here -> Vim: copy selection to OS X clipboard

Now i use fakeclip, and it work in vim directly, but not when i use tmux to split terminal window.

Community
  • 1
  • 1
Shizoman
  • 953
  • 2
  • 9
  • 15
  • Access to the pasteboard in Mac OS X works differently from most systems. You may need to [patch tmux](http://superuser.com/questions/245893/copy-paste-not-working-in-macvim-when-launched-in-tmux) to have it make some special system calls that let its children retain access to the pasteboard. – Chris Johnsen Mar 14 '11 at 06:44
  • You can try to use `xclip`, I use it on Ubuntu GNU/Linux to work with clipboard. GNU/Linux and OSX both use XWindow so maybe it will too. – jcubic Oct 22 '11 at 00:07

2 Answers2

5

Latest beta of iTerm2 has built-in tmux integration, which would take care of this.

mt3
  • 2,654
  • 4
  • 26
  • 29
4

fakeclip has been updated to work with both tmux and with screen:

  • v0.2.5 : added tmux support. (2009-11-11)
  • v0.2.10 : added a fix for tmux when screen is also installed. (2012-01-21)
spazm
  • 4,399
  • 31
  • 30