Browse Source

Fix unknown key split-window (#4)

closes #3
ubuntu_ci
Ein Verne 4 years ago committed by GitHub
parent
commit
031ec89274
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      tmux/.tmux.conf

20
tmux/.tmux.conf

@ -49,10 +49,10 @@ set -g visual-activity off
# 调节窗口大小快捷键 # 调节窗口大小快捷键
# bind -r 表示可以重复 # bind -r 表示可以重复
# 注意这里时大写,需要按住 Shift + HJKL # 注意这里时大写,需要按住 Shift + HJKL
bind -r H resize-pane -L 5 bind-key -r H resize-pane -L 5
bind -r J resize-pane -D 5 bind-key -r J resize-pane -D 5
bind -r K resize-pane -U 5 bind-key -r K resize-pane -U 5
bind -r L resize-pane -R 5 bind-key -r L resize-pane -R 5
# move between panels using hjkl like in vim up # move between panels using hjkl like in vim up
#bind-key k select-pane -U #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-Up select-pane -U
# bind -n M-Down select-pane -D # bind -n M-Down select-pane -D
# split panes using | and - # split panes using | and - or shift \ and shift -
bind \ split-window -h -c "#{pane_current_path}" bind-key "\\" split-window -h -c "#{pane_current_path}"
bind | split-window -h -c "#{pane_current_path}" bind-key "\|" split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}" bind-key "-" split-window -v -c "#{pane_current_path}"
bind _ split-window -v -c "#{pane_current_path}" bind-key "_" split-window -v -c "#{pane_current_path}"
unbind '"' unbind '"'
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-yank'
set -g @plugin 'tmux-plugins/tmux-open' set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'christoomey/vim-tmux-navigator' set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-resurrect'
# Other examples: # Other examples:
# set -g @plugin 'github_username/plugin_name' # set -g @plugin 'github_username/plugin_name'

Loading…
Cancel
Save