Skip to content

Instantly share code, notes, and snippets.

@nemes1s
Created August 6, 2019 06:43
Show Gist options
  • Save nemes1s/fd99cb906bf0416a022f62af6637a032 to your computer and use it in GitHub Desktop.
Save nemes1s/fd99cb906bf0416a022f62af6637a032 to your computer and use it in GitHub Desktop.
# Set 'v' for vertical and 'h' for horizontal split
bind v split-window -h -c '#{pane_current_path}'
bind b split-window -v -c '#{pane_current_path}'
# vim-like pane switching
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
# vim-like pane resizing
bind -r C-k resize-pane -U
bind -r C-j resize-pane -D
bind -r C-h resize-pane -L
bind -r C-l resize-pane -R
############################################################################
# Unbindings
############################################################################
# remove default binding since replacing
unbind %
unbind Up
unbind Down
unbind Left
unbind Right
unbind C-Up
unbind C-Down
unbind C-Left
unbind C-Right
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment