Kann geändert werden durch:
set -g prefix C-a bind C-a send-prefix
set-window-option -g mode-keys vi
Foglendes funktioniert wenn vi-Keybindings aktiviert sind (standarmäßig sind emacs-Keybindings aktiviert) - vim wird per:
set-window-option -g mode-keys vigesetzt.
# Deaktiviert die Terminal-Command-Sequenz-Methode set-option -s set-clipboard off # Drücken von v aktiviert den Visual-Mode zum kopieren bind-key -T copy-mode-vi v send-keys -X begin-selection bind-key -T copy-mode-vi y send-keys -X rectangle-toggle # Enfernen des Bindings (falls es schon belegt sein sollte) für Enter unbind -T copy-mode-vi Enter # Enter sendet den kopierten Text an xclip (-se -> an welche "selection" -> c = clipboard; -i -> In -> sende es an, nicht lese von) bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel 'xclip -se c -i' # Das gleiche noch mal für die Maus bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'xclip -se c -i' # Binde (außerhalb des Copy-Mode) P (groß P) an Einfügen des Puffers bind P paste-buffer