【问题标题】:Howto go to beginning of line in tmux after remapping prefix to CTRL+A?将前缀重新映射到 CTRL+A 后如何在 tmux 中转到行首?
【发布时间】:2012-03-29 20:36:34
【问题描述】:

按照这个 Archlinux wiki 中的建议,在 page about tmux 中,我将命令键前缀重新映射为 C-a,以模仿 GNU 屏幕并在键盘上提供比 C-b 更容易的东西。所以我的 .tmux.conf 变成了这样:

set -g default-terminal "screen-256color"
unbind C-b
set -g prefix C-a
set-window-option -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

然而,虽然在屏幕中可以使用C-a a 跳转到行首,但这在 tmux 中不再起作用。作为旁注,我使用的是没有 tmux 集成的 iTerm2。

有人知道怎么解决吗?

谢谢!

【问题讨论】:

  • 将大写锁定重新映射到 ctrl。改变你的生活。

标签: macos terminal tmux


【解决方案1】:

您需要告诉 tmux Prefix+a 应该将前缀键发送到当前窗格中运行的程序:

bind a send-prefix

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-04-03
    • 1970-01-01
    • 1970-01-01
    • 2011-03-19
    • 1970-01-01
    • 2012-08-09
    • 2014-09-06
    • 1970-01-01
    相关资源
    最近更新 更多