Skip to content

Commit 900392f

Browse files
committed
copy/paste fix for mac osx
1 parent b04ff10 commit 900392f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tmux.conf

+5
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,8 @@ bind -r C-l resize-pane -R 8
3131
set escape-time 0
3232

3333
set -g default-terminal "xterm-256color"
34+
35+
# fix for copy/paste issue in mac osx
36+
setw -g mode-keys vi
37+
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
38+
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"

vimrc

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
" This must be first, because it changes other options as side effect
22
set nocompatible
33

4+
" fix for mac osx copy/paste issue
5+
set clipboard=unnamed
6+
47
" vim plugins
58
" -----------------------------------------------------------------
69
call plug#begin('~/.vim/plugged')

0 commit comments

Comments
 (0)