Skip to content

Instantly share code, notes, and snippets.

@dafyddcrosby
Created August 23, 2017 02:02
Show Gist options
  • Save dafyddcrosby/376c04ae39ac1c44d844dc23a006814b to your computer and use it in GitHub Desktop.
Save dafyddcrosby/376c04ae39ac1c44d844dc23a006814b to your computer and use it in GitHub Desktop.
# Use vim keybindings in copy mode
setw -g mode-keys vi
unbind p
bind p paste-buffer
bind -T copy-mode-vi 'v' send -X begin-selection
bind -T copy-mode-vi 'C-v' send -X rectangle-toggle
# Pre-tmux 2.3 vi bindings
#bind-key -t vi-copy 'v' begin-selection
#bind-key -t vi-copy 'C-v' begin-selection
# Make it easy to tell the active pane
set-option -g pane-active-border-bg blue
set-option -g pane-active-border-fg green
# Reload source
bind r source-file ~/.tmux.conf \; display "source-file reloaded!"
# Split panes
bind | split-window -h
bind - split-window -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment