Bird
0
0

Why does Vim require pressing Esc before typing commands like :wq?

hard📝 Conceptual Q10 of 15
Linux CLI - Viewing and Editing Files
Why does Vim require pressing Esc before typing commands like :wq?
ABecause Esc switches to insert mode
BBecause Esc saves the file automatically
CBecause Vim must be in command mode to accept commands
DBecause Esc quits Vim immediately
Step-by-Step Solution
Solution:
  1. Step 1: Understand Vim modes

    Vim has insert mode for typing text and command mode for commands.
  2. Step 2: Explain why Esc is needed

    Pressing Esc exits insert mode and enters command mode where commands like :wq work.
  3. Final Answer:

    Because Vim must be in command mode to accept commands -> Option C
  4. Quick Check:

    Esc switches to command mode for commands [OK]
Quick Trick: Press Esc to enter command mode before commands [OK]
Common Mistakes:
MISTAKES
  • Thinking Esc saves file
  • Thinking Esc enters insert mode
  • Thinking Esc quits Vim

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes