Is it possible to swith the iterm key binding to switch tabs with super and the vim…
- User
Is it possible to swith the iterm key binding to switch tabs with super and the vim motion keys?
Assistant
Yes, you can configure iTerm2 to switch tabs using Cmd (Super) + vim motion keys. Here's how to set it up:
- Open iTerm2 Preferences (Cmd + ,)
- Go to the "Keys" tab
- Click the "Key Bindings" tab
- Click the "+" button to add new key bindings
Add these key bindings:
For Cmd+H (left):
- Keyboard Shortcut: Cmd+H
- Action: Select Tab
- Parameter: Previous Tab
For Cmd+L (right):
- Keyboard Shortcut: Cmd+L
- Action: Select Tab
- Parameter: Next Tab
If you want to use J/K for tab navigation instead:
For Cmd+J:
- Keyboard Shortcut: Cmd+J
- Action: Select Tab
- Parameter: Previous Tab
For Cmd+K:
- Keyboard Shortcut: Cmd+K
- Action: Select Tab
- Parameter: Next Tab
Note that Cmd+H is normally used for "Hide iTerm2" so you'll lose that system shortcut. If you prefer to keep the hide function, you could use Cmd+Shift+H/L instead, or choose different modifier combinations like Cmd+Option+H/L.
You can also set up direct tab selection with Cmd+1, Cmd+2, etc. by using the "Select Tab" action with parameters like "Tab 1", "Tab 2", etc.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.