Skip to content

Instantly share code, notes, and snippets.

@GreatBahram
Last active June 11, 2020 06:00
Show Gist options
  • Save GreatBahram/f55b57af16d25725d68d23bee55905cd to your computer and use it in GitHub Desktop.
Save GreatBahram/f55b57af16d25725d68d23bee55905cd to your computer and use it in GitHub Desktop.
Make https://github.com/gpakosz/.tmux compatible with vim key bindings
# My changes
# Change pane control to be Alt+vim arrow keys
bind-key -n M-h select-pane -L
bind-key -n M-l select-pane -R
bind-key -n M-k select-pane -U
bind-key -n M-j select-pane -D
#
# Change window control
bind-key l next-window
bind-key h previous-window
#
# No delay for escape key press
set -sg escape-time 0
# open the '~/.tmux.conf' and comment out this line:
set -g prefix2 C-a
# start with mouse mode enabled
set -g mouse on
# Release Ctrl+a
unbind C-a
# Don't forget to go to tmux dir and add this change into `.tmux.conf`
# Disable Ctrl-a by Bahram
# set -g prefix2 C-a # GNU-Screen compatible prefix
# bind C-a send-prefix -2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment