Skip to content

Instantly share code, notes, and snippets.

@johnrizzo1
Created March 4, 2019 17:30
Show Gist options
  • Save johnrizzo1/52bf95ed9cbbe207766b332abe8ad0b8 to your computer and use it in GitHub Desktop.
Save johnrizzo1/52bf95ed9cbbe207766b332abe8ad0b8 to your computer and use it in GitHub Desktop.
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
# Set the prefix to ^A.
unbind C-b
set -g prefix ^A
bind a send-prefix
# smart pane switching with awareness of vim splits
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment