Tmuxは異なる動作をします。 Ca+Ca は行の先頭にジャンプする代わりに「^A」を印刷します。

Tmuxは異なる動作をします。 Ca+Ca は行の先頭にジャンプする代わりに「^A」を印刷します。

私のディレクトリに次のエントリがあります~/.tmux.conf

# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix

通常、行の先頭に移動するには、tmuxとCtrl- A+ Ctrl-を使用するだけで十分です。AしばらくTmuxは^Aカーソルカラーのハイライトのみを印刷しました。

zshいくつかのアップデートでTmuxのいくつかの変更を見逃しましたか?それとも、termiteまたは(ターミナルエミュレータ)によって呼び出されますか?

完全に~/.tmux.conf

set-option -ga terminal-overrides ",xterm-termite:Tc"

# source /usr/lib/python3.7/site-packages/powerline/bindings/tmux/powerline.conf
set-option -g default-terminal "screen-256color"

# enable utf-8 on status bar
set-option -g status on
# set-option -g status-utf8 on

# remap prefix from 'C-b' to 'C-a'
unbind C-b
set -g prefix C-a
bind-key C-a send-prefix

# split panes using | and -
# bind | split-window -h
# bind - split-window -v
# split window and fix path for tmux 1.9
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
unbind '"'
unbind %

# reload config file (change file location to your the tmux.conf you want to use)
#bind r source-file ~/.tmux.conf
unbind r
bind r \
    source-file ~/.tmux.conf \;\
        display 'Reloaded tmux config.'

# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D

# modes
# setw -g mode-attr bold 
# set -g message-attr bold
# setw -g window-status-bell-attr bold
# setw -g window-status-current-attr bold

set -g status-bg colour2

# switch panes using vim keybindings
# bind -n M-h select-pane -L
# bind -n M-l select-pane -R
# bind -n M-k select-pane -U
# bind -n M-j select-pane -D

# switch panels
bind k selectp -U # switch to panel Up
bind j selectp -D # switch to panel Down 
bind h selectp -L # switch to panel Left
bind l selectp -R # switch to panel Right

set-window-option -g mode-keys vi

# Enable mouse mode (tmux 2.1 and above)
set -g mouse on

ベストアンサー1

tmuxCtrl+からA行の先頭に移動することは、「コピー」モードでのみ機能します。コマンドまたはコピーモードでない場合、カーソルの位置は現在のウィンドウのシェルまたはプログラムではなく、現在のウィンドウのシェルまたはプログラムによって制御されますtmux

したがって、まず「コピー」モードに入り、次にCtrl+Aキーを押してラインを開始する必要があります。主キーの場合:

Ctrl + A
[
Ctrl + A

これはあなたに効果がありますか?

おすすめ記事