Last active
May 10, 2016 15:42
-
-
Save hectorh30/553a9b464a78c9a2ba8e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
unbind % # Remove default binding | |
# Cygwin stuff | |
# Make ctrl + left and ctrl + right move through next and previous word (requires some .inputrc stuff) | |
# set-window-option -g xterm-keys on | |
# See http://stackoverflow.com/questions/26435333/cygwin-tmux-on-windows-7-why-wont-tmux-use-the-current-path | |
# set-environment -g CHERE_INVOKING 1 | |
# Window opening and closing | |
bind-key -n C-t new-window -c "#{pane_current_path}" | |
bind-key -n C-w kill-window | |
# Window moving with C-M page up/down | |
bind-key -n C-M-PPage swap-window -t -1 | |
bind-key -n C-M-NPage swap-window -t +1 | |
# Window switching with page up/down | |
bind-key -n C-PPage previous-window | |
bind-key -n C-NPage next-window | |
# Window splitting | |
bind-key -n M-2 split-window -v -c "#{pane_current_path}" | |
bind-key -n M-3 split-window -h -c "#{pane_current_path}" | |
# Pane moving | |
bind-key -n M-Up select-pane -U | |
bind-key -n M-Down select-pane -D | |
bind-key -n M-Left select-pane -L | |
bind-key -n M-Right select-pane -R | |
# Pane resizing | |
bind-key -n C-u resize-pane -U 5 | |
bind-key -n C-n resize-pane -D 5 | |
bind-key -n C-h resize-pane -L 5 | |
bind-key -n C-j resize-pane -R 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment