The Complete Claude Guide
Chapter 06 · CLI

Interactive mode: shortcuts, multiline, Vim and shell mode

Interactive mode offers a rich editing layer: keyboard shortcuts, multiline input, Vim mode, shell mode and a task queue. Mastering them makes daily work much faster.

Verified against source on 2026-09-30

Video

Steps

  1. Learn the core shortcuts: input history navigation, cancelling an action, and editing the message before sending.
  2. Multiline input lets you paste code or long instructions without breaking the structure; learn the newline shortcut.
  3. If you are used to Vim, enable the editing mode and get familiar motions inside the input field.
  4. Shell mode runs a shell command without leaving the session, and the queue lets you send instructions while the tool works, cancelling with /btw when needed.
Common pitfall: Keyboard shortcuts depend on your terminal configuration; if a shortcut fails, check the terminal-config page before assuming the tool is broken.
Hands-on exercise: Configure your terminal per the official guide, practice multiline input with code, and try shell mode with a safe command like ls.
Filmed demo · Video is added in the media phase

Recap

Comprehension check

What does shell mode do in interactive mode?

Recap

Official sources

← Previous Back to contents Next →