LoginSignup
2
2

More than 5 years have passed since last update.

TmuxでEmacs風 ペインおよびウィンドウ操作設定

Last updated at Posted at 2014-02-21

C-z 数字でウィンドウの移動も便利だが、C-z [0-3]でペイン、ウィンドウ操作のほうがしっくりくる。

tmux.conf
# prefixをCtrl-BからCtrl-zに変更
unbind-key C-b
set-option -g prefix C-z
bind-key C-z send-prefix

bind 0 kill-pane
bind 1 break-pane
bind 2 split-window -v
bind 3 split-window -h
bind o select-pane -t :.+
bind k kill-window
キー入力 説明
Ctrl-z 0 現在のペインを削除
Ctrl-z 1 ウィンドウ内の現在のペインを残し、他のペインをウィンドウにする
Ctrl-z 2 ウィンドウを横に分割
Ctrl-z 3 ウィンドウを縦に分割
Ctrl-z o ペインをローテート
Ctrl-z k ウィンドウを削除
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2