-
-
Save Mehechiger/30d08b99f57c2a793f86f43060100c87 to your computer and use it in GitHub Desktop.
vim style tmux config
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
# vim style tmux config | |
# Easy config reload | |
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded." | |
# Larger buffer | |
set-option -g history-limit 50000 | |
# vi is good | |
setw -g mode-keys vi | |
# vi \ search | |
bind-key / copy-mode \; send-key ? | |
# mouse behavior | |
setw -g mouse on | |
set-option -g default-terminal screen-256color | |
bind-key : command-prompt | |
# use vim-like keys for splits and windows | |
bind-key h select-pane -L | |
bind-key j select-pane -D | |
bind-key k select-pane -U | |
bind-key l select-pane -R | |
set-window-option -g other-pane-height 25 | |
set-window-option -g other-pane-width 80 | |
set-window-option -g display-panes-time 1500 | |
set-window-option -g window-status-current-style fg=magenta | |
# Setup 'v' to begin selection as in Vim | |
bind-key -T copy-mode-vi v send -X begin-selection | |
bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" | |
# Update default binding of `Enter` to also use copy-pipe | |
unbind -T copy-mode-vi Enter | |
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" | |
# Status Bar | |
set-option -g status-interval 1 | |
set-option -g status-style bg=black | |
set-option -g status-style fg=white | |
set -g status-left '#[fg=green]#H #[default]' | |
set -g status-right '%a%l:%M:%S %p#[default] #[fg=blue]%Y-%m-%d' | |
set-option -g pane-active-border-style fg=yellow | |
set-option -g pane-border-style fg=cyan | |
# Set window notifications | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# Enable native Mac OS X copy/paste | |
#set-option -g default-command "/bin/bash -c 'which reattach-to-user-namespace >/dev/null && exec reattach-to-user-namespace $SHELL -l || exec $SHELL -l'" | |
# Allow the arrow key to be used immediately after changing windows | |
set-option -g repeat-time 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment