Created
October 10, 2014 18:38
-
-
Save lrtfm/74d37d55e62c177b5ccc to your computer and use it in GitHub Desktop.
tmux like vim
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
unbind C-b | |
set -g prefix C-a | |
setw -g mode-keys vi | |
# split window like vim | |
# vim's defination of a horizontal/vertical split is revised from tumx's | |
bind s split-window -h | |
bind v split-window -v | |
# move arount panes wiht hjkl, as one would in vim after C-w | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# resize panes like vim | |
# feel free to change the "1" to however many lines you want to resize by, | |
# only one at a time can be slow | |
bind < resize-pane -L 10 | |
bind > resize-pane -R 10 | |
bind - resize-pane -D 10 | |
bind + resize-pane -U 10 | |
# bind : to command-prompt like vim | |
# this is the default in tmux already | |
bind : command-prompt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment