Prabhakar Kasi iOS Developer, Front End Developer

How to Move the Cursor Fast in iTerm2

1 min read

Move the Cursor Fast in iTerm2


iTerm2 is a powerful terminal emulator for macOS that offers many ways to navigate text efficiently. While basic cursor movement using the arrow keys is fine for simple tasks, it can become slow and tedious when working with long commands or files. Fortunately, iTerm2 provides several shortcuts and features to move the cursor faster, making your workflow more productive

If you are new to iTerm2 and using it without powerful, informative experience please check this setup guide

1. Basic Cursor Movement

ShortcutAction
← / →Move one character left or right
Ctrl + AMove to the beginning of the line
Ctrl + EMove to the end of the line
Ctrl + FMove forward one character (same as →)
Ctrl + BMove backward one character (same as ←)

Tip: Ctrl + A and Ctrl + E are incredibly useful when editing long commands.

2. Move by Word

Instead of moving one character at a time, jump by words:

For this to work in iTerm, you need to Enable “Use Option as Meta key”: iTerm2 → Preferences → Profiles → Keys → check Left option acts as +Esc. This lets you use Option + F or B for word jumps.

ShortcutAction
Option + FMove forward one word
Option + BMove backward one word

Using word jumps is much faster when navigating long commands or paths.

3. Delete While Moving

You can delete text as you move, saving even more time:

ShortcutAction
Ctrl + WDelete word before cursor
Option + BackspaceDelete word before cursor (iTerm2 default)
Ctrl + UDelete from cursor to start of line
Ctrl + KDelete from cursor to end of line

Combine these with cursor movement shortcuts for lightning-fast edits.

4. Summary

Here’s the fastest combo for editing in iTerm2:

  • Jump to start/end: Ctrl + A / Ctrl + E
  • Move by word: Option + F / Option + B
  • Move by character: ← / → / Ctrl + F / Ctrl + B
  • Search commands: Ctrl + R

With these shortcuts, you’ll spend less time moving the cursor and more time getting things done.

Prabhakar Kasi iOS Developer, Front End Developer

Leave a Reply