diff options
author | humphreylin <[email protected]> | 2019-08-13 03:17:48 +0000 |
---|---|---|
committer | humphreylin <[email protected]> | 2019-08-13 03:17:48 +0000 |
commit | fc3222197acafba3044ea8138edaf7b701fa5565 (patch) | |
tree | 2e83ed918820260be3a851434833e04e87ab747c /.tmux.conf | |
parent | 72b32c3beba27d7e5dd4f3b6b34dca6d0392adc7 (diff) | |
download | dotfiles-fc3222197acafba3044ea8138edaf7b701fa5565.tar.gz dotfiles-fc3222197acafba3044ea8138edaf7b701fa5565.tar.bz2 dotfiles-fc3222197acafba3044ea8138edaf7b701fa5565.zip |
set vim mode on tmux and add some key binding in vim
Diffstat (limited to '.tmux.conf')
-rw-r--r-- | .tmux.conf | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -2,6 +2,13 @@ unbind ^b set -g prefix 'M-`' +# vim mode +setw -g mode-keys vi + +# copy and paste like vim +bind -T copy-mode-vi 'v' send -X begin-selection +bind -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" + # swtich between pane bind h select-pane -L bind j select-pane -D |