LoginSignup
31
31

More than 5 years have passed since last update.

tmux内のvimでclipboardにunnamedが含まれるとヤンク・コピーができない

Last updated at Posted at 2012-12-26

Macのtmux内で clipboard+=unnamed な Vim でヤンク・コピーをすると E353: Nothing in register * というエラーが出る。これはMacでtmuxを使うとpbcopy, pbpasteが使えない問題の余波によるものらしい。
これを修正するにはChrisJohnsen/tmux-MacOSX-pasteboardを使う。homebrewでインストール可能。

brew install reattach-to-user-namespace

自分でビルドするには reattach-to-user-namespace コマンドをビルドしてPATHを通してtmuxの設定を少し修正する。

git clone https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard.git
cd tmux-MacOSX-pasteboard
make reattach-to-user-namespace
cp reattach-to-user-namespace ~/bin/
.tmux.conf
set-option -g default-command "reattach-to-user-namespace -l zsh"
31
31
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
31
31