Skip to content

Instantly share code, notes, and snippets.

@BjRo
Created July 12, 2016 11:58
Show Gist options
  • Save BjRo/87cc3bad22a8df208267527c885b37d2 to your computer and use it in GitHub Desktop.
Save BjRo/87cc3bad22a8df208267527c885b37d2 to your computer and use it in GitHub Desktop.
# Move around the buffer in vim style
setw -g mode-keys vi
# Shortcuts
bind r source-file ~/.tmux.conf\; display "Reloaded!" #reload configuration
bind | split-window -h -c '#{pane_current_path}' #split window horizontally
bind - split-window -v -c '#{pane_current_path}' #split window vertically
bind h select-pane -L #vim style pane navigation
bind j select-pane -D #vim style pane navigation
bind k select-pane -U #vim style pane navigation
bind l select-pane -R #vim style pane navigation
bind -r C-h select-wind -t :- #previous window
bind -r C-l select-wind -t :+ #next window
bind -r H resize-pane -L 5 #pane resizing
bind -r J resize-pane -D 5 #pane resizing
bind -r K resize-pane -U 5 #pane resizing
bind -r L resize-pane -R 5 #pane resizing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment