LoginSignup
8
5

More than 5 years have passed since last update.

tmux > 上下ペインの入れ替え > C-b { または C-b C-o

Last updated at Posted at 2018-01-18
動作環境
GeForce GTX 1070 (8GB)
ASRock Z170M Pro4S [Intel Z170chipset]
Ubuntu 16.04 LTS desktop amd64
TensorFlow v1.2.1
cuDNN v5.1 for Linux
CUDA v8.0
Python 3.5.2
IPython 6.0.0 -- An enhanced Interactive Python.
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)
scipy v0.19.1
geopandas v0.3.0
MATLAB R2017b (Home Edition)
ADDA v.1.3b6
tmux 2.1-3build1

tmuxで上下にペインを分割して使うことが多い。

キーの入力間違いで上下のペインが入れ替わることがあった。
元に戻すには。

The swap-pane command can do this for you. The { and } keys are bound to swap-pane -U and swap-pane -D in the default configuration.

  • C-b {
    • Ctrl+b後にShift+[
  • C-b }
    • Ctrl+b後にShift+]

別のキー

同じリンク先に下記のキーも記載されていた。

  • C-b C-o

おそらくこちらを間違って使ったのだろう。
(ペイン間の移動がC-b oで、C-b C-oを間違って実行した。)

関連

使用例

  • ペインを3分割している
    • 上のペイン1つ
    • 下のペイン2つ (横分割)
    • 上のペインは横長の表示が必要な時に使用
    • 下のペインは補助的な使用

上記の場合、上のペインを作業のメインとし、適宜C-b C-oによりメインのペインをローテーションして使うと作業がしやすそうだ。

8
5
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
8
5