Last active
June 11, 2020 06:00
-
-
Save GreatBahram/f55b57af16d25725d68d23bee55905cd to your computer and use it in GitHub Desktop.
Make https://github.com/gpakosz/.tmux compatible with vim key bindings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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