iTerm2 keyboard shortcut - split pane navigation

TerminalItermTerminal Emulator

Terminal Problem Overview


I have been a long time user of the standard Mac Terminal. Decided to experiment with iTerm2 after hearing good things about it from my colleagues.

One of the more useful features I am seeing on iTerm2 is its split panes (much like vim split buffers).

In vim, I can move between split buffers using Ctrl+W+arrowkeys. Is there a keyboard shortcut for iTerm2 to move between panes as well?

Terminal Solutions


Solution 1 - Terminal

From the documentation:

> Cmd] and Cmd[ navigates among split panes in order of use.

Solution 2 - Terminal

Cmd+opt+/// navigate similarly to vim's C-w hjkl.

Solution 3 - Terminal

++/// will let you navigate split panes in the direction of the arrow, i.e. when using +D to split panes vertically, ++ and ++ will let you switch between the panes.

Solution 4 - Terminal

there is configuration in the following way:

Preferences -> keys -> Navigation shortcuts

the 3rd option: shortcut to choose a split pane is "no shortcut" by default, we can choose one

cheers

Solution 5 - Terminal

I was using Terminator before, so I found it convenient to re-map Alt + arrow-key to switch between the panes. This can be done in Preferences -> Keys -> Key Mappings - press the '+' button to add a mapping. Also, in my case such a mapping was already defined in Profiles, I simply removed it.

Solution 6 - Terminal

Spanish ISO:

  1. ++[ goes left top
  2. ++] goes bottom right

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionCalvin ChengView Question on Stackoverflow
Solution 1 - TerminalMichael BerkowskiView Answer on Stackoverflow
Solution 2 - TerminalGeorgeView Answer on Stackoverflow
Solution 3 - TerminalBombeView Answer on Stackoverflow
Solution 4 - TerminalHan.OliverView Answer on Stackoverflow
Solution 5 - TerminalMaxim ChetruscaView Answer on Stackoverflow
Solution 6 - TerminalDavid CasanellasView Answer on Stackoverflow