Created
January 17, 2018 01:12
-
-
Save aileron/775d4e5324ebc555e560640182bebff0 to your computer and use it in GitHub Desktop.
.tmux.conf vi mode
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
set-option -g default-terminal screen-256color | |
# set-option -g default-command "reattach-to-user-namespace -l zsh" | |
set -g terminal-overrides 'xterm:colors=256' | |
# Use vim keybindings in copy mode | |
setw -g mode-keys vi | |
# 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 "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 "reattach-to-user-namespace pbcopy" | |
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment