340
votes

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?

6
mac shortcut of usefulness: ++/ and then try a few keywords (in this case split) in the search bar. Use the to view the menu items, if there is a built-in shortcut you will see it alongside the menu item. works on most mac applications, ie Excel, sublime, firefox, etc.Merlin
I have mixed feeling about this question ... although I think it' useful, shouldn't key bindings have a proper place to the Q/A?Gerardo Lima

6 Answers

670
votes

From the documentation:

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

168
votes

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

110
votes

++/// 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.

3
votes

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

2
votes

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.

0
votes

Spanish ISO:

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