iTerm2 tips, Episode 1: Jump forward and backward words in iTerm2

ยท 134 words ยท 1 minute read

tl;dr: This is a short practical post on how to move words forward and backward in iTerm2.

Identify key mappings ๐Ÿ”—

This is where we will find all key mappings of iTerm2.

Go to your iTerm2 settings -> Click on profiles -> Identify your profile -> Click on Keys -> Then Key Mappings.

iTerm2 key mappings

Jump forward words ๐Ÿ”—

In the key mappings section, find the โŒฅ โ†’ action -> Double click. Set the following:

  • Keyboard Shortcut: Keep โŒฅ โ†’
  • Action: Send Escape Sequence
  • Esc+: f

Click on OK. You can jump words forward with โŒฅ โ†’

Jump forward words

Jump backward words ๐Ÿ”—

In the key mappings section, find the โŒฅ โ† action -> Double click. Set the following:

  • Keyboard Shortcut: Keep โŒฅ โ†
  • Action: Send Escape Sequence
  • Esc+: b

Click on OK. You can jump words backward with โŒฅ โ†

Jump backward words