Selaa lähdekoodia

Use vim mode and fix copy/paste bindings

Viktor Grahn 3 vuotta sitten
vanhempi
commit
dc423483b9
1 muutettua tiedostoa jossa 10 lisäystä ja 0 poistoa
  1. 10 0
      .tmux.conf

+ 10 - 0
.tmux.conf

@@ -1,4 +1,14 @@
 set -g default-terminal "tmux-256color"
+set -g display-panes-time 5000
+set -s set-clipboard off
+
+# Set vi key binding, and add the standard v and y
+setw -g mode-keys vi
+bind -T copy-mode-vi v send-keys -X begin-selection
+bind -T copy-mode-vi y send -X copy-pipe-and-cancel 'xclip -i -selection clipboard'
+# Unbind enter to copy, use y like normal people
+unbind -T copy-mode-vi Enter
+
 bind '"' split-window -c "#{pane_current_path}"
 bind % split-window -h -c "#{pane_current_path}"
 bind C new-window -c "#{pane_current_path}"