aboutsummaryrefslogtreecommitdiff
path: root/.tmux.conf
diff options
context:
space:
mode:
Diffstat (limited to '.tmux.conf')
-rw-r--r--.tmux.conf7
1 files changed, 7 insertions, 0 deletions
diff --git a/.tmux.conf b/.tmux.conf
index 760637a..b2e3fff 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -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