From 031ec89274293e5baf7e8840ebcef2d00592132a Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Thu, 23 Jul 2020 22:34:43 +0800 Subject: [PATCH] Fix unknown key split-window (#4) closes #3 --- tmux/.tmux.conf | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 11691cd..2f3dbae 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -49,10 +49,10 @@ set -g visual-activity off # 调节窗口大小快捷键 # bind -r 表示可以重复 # 注意这里时大写,需要按住 Shift + HJKL -bind -r H resize-pane -L 5 -bind -r J resize-pane -D 5 -bind -r K resize-pane -U 5 -bind -r L resize-pane -R 5 +bind-key -r H resize-pane -L 5 +bind-key -r J resize-pane -D 5 +bind-key -r K resize-pane -U 5 +bind-key -r L resize-pane -R 5 # move between panels using hjkl like in vim up #bind-key k select-pane -U @@ -71,11 +71,11 @@ bind -r L resize-pane -R 5 # bind -n M-Up select-pane -U # bind -n M-Down select-pane -D -# split panes using | and - -bind \ split-window -h -c "#{pane_current_path}" -bind | split-window -h -c "#{pane_current_path}" -bind - split-window -v -c "#{pane_current_path}" -bind _ split-window -v -c "#{pane_current_path}" +# split panes using | and - or shift \ and shift - +bind-key "\\" split-window -h -c "#{pane_current_path}" +bind-key "\|" split-window -h -c "#{pane_current_path}" +bind-key "-" split-window -v -c "#{pane_current_path}" +bind-key "_" split-window -v -c "#{pane_current_path}" unbind '"' unbind % @@ -163,7 +163,7 @@ set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-yank' set -g @plugin 'tmux-plugins/tmux-open' set -g @plugin 'christoomey/vim-tmux-navigator' -set -g @plugin 'tmux-plugins/tmux-resurrect' +set -g @plugin 'tmux-plugins/tmux-resurrect' # Other examples: # set -g @plugin 'github_username/plugin_name'