3 ms·
Not sure if it is only at my Mac, but with the latest Mac OS + iTerm + TMUX + VIM, my clipboard doesn't work properly, even using the following setup on my tmux
by brunoluiz 10y ago
Not sure if it is only at my Mac, but with the latest Mac OS + iTerm + TMUX + VIM, my clipboard doesn't work properly, even using the following setup on my tmux
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
Anyone with the same problem?
- grimgrin 10y agoNo clue if you've done these steps, and I'm not on Mac OS at the moment (also I use Terminal.app), but: In my main .tmux.conf I put: if-shell 'test "$(uname -s)" = Darwin' 'source-file ~/.tmux-osx.conf' And then in .tmux-osx.conf I add: # https://robots.thoughtbot.com/tmux-copy-paste-on-os-x-a-better-future # To copy/paste on OSX just brew install the following # brew install reattach-to-user-namespace # Setup 'v' to begin selection as in Vim bind-key -t vi-copy v begin-selection bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" # Update default binding of `Enter` to also use copy-pipe unbind -t vi-copy Enter bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy" I only pointed out the separation of configs because it's kinda nice for my setup.
- brunoluiz 10y agoI had the same config, but I discovered what was missing. If you use zsh, you need to add this as well: set-option -g default-command "reattach-to-user-namespace -l zsh"
- deleted 10y ago[deleted]
- sweeneyrod 10y agoDon't use TMUX, but other than that yes (presuming you mean that you can't copy to the clipboard buffers with * and +). I've not got round to fixing it yet; copying from iTerm works for single lines (for multiple you get line numbers too) and just doing pbcopy isn't too much effort otherwise.