LoginSignup
41
38

More than 5 years have passed since last update.

tmux内のvimで「E353: Nothing in register *」と出てコピーペーストができなくなった

Posted at

MacのVimでHomebrewを使ってクリップボード連携を有効にするの続きです。

前回の設定でVimからクリップボードが使えるようになりましたがtmuxを立ち上げてからコピーペーストしようとするとE353: Nothing in register *が出るようになってしまいました。

以下の手順で解決できます。

$ brew install reattach-to-user-namespace

$ echo 'set-option -g default-command "reattach-to-user-namespace -l bash"' >> ~/.tmux.conf

これだけです。
tmux kill-serverなどして再度立ち上げると問題なくコピーペーストできるようになります。

41
38
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
41
38