Finally make copy and paste work
This commit is contained in:
parent
c1ceaaa8e8
commit
a7caddb930
2 changed files with 5 additions and 0 deletions
|
@ -32,6 +32,9 @@ set-window-option -g monitor-activity off
|
||||||
# copy mode stuff
|
# copy mode stuff
|
||||||
set-window-option -g mode-mouse on # mouse can enable (danger zone, maybe?)
|
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
|
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
|
# be more like vim
|
||||||
bind s split-window -v # horizontal window split
|
bind s split-window -v # horizontal window split
|
||||||
|
|
2
.vimrc
2
.vimrc
|
@ -77,8 +77,10 @@ map <Down> <Nop>
|
||||||
let mapleader = ","
|
let mapleader = ","
|
||||||
|
|
||||||
map <Leader>bi :BundleInstall<cr>
|
map <Leader>bi :BundleInstall<cr>
|
||||||
|
map <Leader>c "+
|
||||||
map <Leader>fw :FixWhitespace<cr>
|
map <Leader>fw :FixWhitespace<cr>
|
||||||
map <Leader>lf :call LargeFileToggle()<cr>
|
map <Leader>lf :call LargeFileToggle()<cr>
|
||||||
|
map <Leader>p "+p
|
||||||
map <Leader>s :e ~/Source/<cr>
|
map <Leader>s :e ~/Source/<cr>
|
||||||
map <Leader>sa :call RenameFile()<cr>
|
map <Leader>sa :call RenameFile()<cr>
|
||||||
map <Leader>se :e ~/.vimrc<cr>
|
map <Leader>se :e ~/.vimrc<cr>
|
||||||
|
|
Loading…
Reference in a new issue