昨天,我升級到MacOS Sierra,並在我的tmux + neovim設置中破壞了我的剪貼板功能。升級到MacOS後,tmux + vim中的剪貼板故障Sierra
這裏是行爲:
- 我可以使用標準的CTRL + C,CTRL + P複製/系統之間的膏< - > VIM
- 我可以拷貝兩個VIM實例時間/粘貼不是在TMUX會議
- 我不能把抽出/粘貼2個VIM實例之間時,在TMUX會議
每當我使用剪貼板在VIM一TMUX會話中,我得到以下錯誤的vim :
clipboard: error:
我.vimrc
是巨大的,但這裏是我認爲可能是相關的:
set clipboard=unnamed
在我.tmux.conf
(也被截斷爲簡潔起見):
set -g prefix ` # use tilde key as prefix
bind ` send-key ` # insert tilde by pressing twice
set -g history-limit 100000 # set buffer size
set -s escape-time 0 # fix escape key in vim
set -g allow-rename off # keep window names static
set -g default-terminal "screen-256color" # set the TERM to 256 colors
set -g base-index 1 # start window count at 1
set -g pane-base-index 1 # start pane count at 1
set -g default-shell $SHELL # use zsh as shell
編輯:這似乎與此處報告的錯誤有關:
https://github.com/tmux/tmux/issues/543
https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard/issues/53
Neovim or Vim? – romainl
@romainl兩者,只要它們在tmux會話中運行即可。請參閱第二期問題鏈接中提到的回購。似乎是每個新MacOS版本引入的經常性迴歸。 – doremi