Finally make copy and paste work

This commit is contained in:
Andrew Tomaka 2013-08-08 14:07:23 -04:00
parent c1ceaaa8e8
commit a7caddb930
2 changed files with 5 additions and 0 deletions

View file

@ -32,6 +32,9 @@ set-window-option -g monitor-activity off
# copy mode stuff
set-window-option -g mode-mouse on # mouse can enable (danger zone, maybe?)
set-window-option -g mode-keys vi # emulate vim movement in copy mode
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
bind y run-shell "tmux show-buffer | xclip -sel clip -i"
# be more like vim
bind s split-window -v # horizontal window split

2
.vimrc
View file

@ -77,8 +77,10 @@ map <Down> <Nop>
let mapleader = ","
map <Leader>bi :BundleInstall<cr>
map <Leader>c "+
map <Leader>fw :FixWhitespace<cr>
map <Leader>lf :call LargeFileToggle()<cr>
map <Leader>p "+p
map <Leader>s :e ~/Source/<cr>
map <Leader>sa :call RenameFile()<cr>
map <Leader>se :e ~/.vimrc<cr>