Answers:
我在相关文章中找到了一个很好的答案:屏幕或tmux的最不冲突的前缀/转义序列是什么?
我已经用Ctrl- \了。以下是我的〜/ .tmux-conf:
set-window-option -g mode-keys vi
set-window-option -g window-status-current-bg blue
set-window-option -g automatic-rename on
set-option -g status-keys vi
set-option -g history-limit 100000
set-option -g base-index 1
set-option -s escape-time 0
setw -g mode-mouse on
set-option -g mouse-select-pane on
# We won't worry about sending C-\ to any programs
# bind-key C-\ send-prefix
# hit C-\ twice to go to last window
bind-key C-\ last-window
bind-key b set-option status
bind-key / command-prompt "split-window 'exec man %%'"
# vim's definition of a horizontal/vertical split is reversed from tmux's
bind s split-window -v
bind v split-window -h
# move around panes with hjkl, as one would in vim after pressing ctrl-w
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes like vim
bind < resize-pane -L 10
bind > resize-pane -R 10
bind - resize-pane -D 10
bind + resize-pane -U 10
# C-b is not acceptable, due to emacs, bash, and vim
unbind-key C-b
set-option -g prefix C-\
我使用Ctrl- /已有一段时间了,至少在vim / bash中没有发现与任何东西冲突。我不使用emacs,所以我不知道它是否与其中的任何重要内容冲突。
还有一个小小的注释,我相信我必须将它绑定到C-_上才能起作用,因为这是它发送的实际密钥。