Last active
February 15, 2018 05:09
-
-
Save jackz3/3fa08e63d83855461446ffb0d8089bc6 to your computer and use it in GitHub Desktop.
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
# :splitw -h -p 20 | |
# tmux source ~/.tmux.conf | |
# git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm | |
# Use prefix–I install plugin | |
# Start window numbering at 1 | |
set -g base-index 1 | |
# set -g default-terminal "screen-256color" | |
set-window-option -g mode-keys vi | |
set -g mouse on | |
bind h select-pane -L # 切换到左边的 Pane | |
bind j select-pane -D # 切换到下边的 Pane | |
bind k select-pane -U # 切换到上边的 Pane | |
bind l select-pane -R # 切换到右边的 Pane | |
bind L resize-pane -L 10 # 向左扩展 | |
bind R resize-pane -R 10 # 向右扩展 | |
bind K resize-pane -U 5 # 向上扩展 | |
bind J resize-pane -D 5 # 向下扩展 | |
# splitv -h -p 20 | |
bind-key -T copy-mode-vi v send-keys -X begin-selection | |
bind-key -T copy-mode-vi y send-keys -X copy-selection | |
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle | |
bind P paste-buffer | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'tmux-plugins/tmux-yank' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment