Screen Too Small

This course material requires a larger screen to properly display the terminal and editor interfaces.

Please use a tablet, laptop, or desktop computer for the best learning experience.

You can continue browsing, but the experience will be significantly limited.

Practice Beginner 10 min

Visual Character Mode Basics

Visual Mode: The Art of Selection

Task Instructions

Practice visual character and word selections to refactor variable names

Use visual character mode to select and change poorly named variables. Position your cursor at the beginning of 'mr_whiskers_connection', press 'v' to enter visual mode, then use motion commands to select the text you want to change. Press 'c' to change the selected text.

Learning objectives

  • Master visual character mode (v)
  • Practice selecting text with motion commands
  • Learn to change selected text efficiently
  • Understand the difference between visual modes

Required keystrokes

Your submission is checked for these keystrokes, not just the final text — so reach for the technique, not a workaround.

  • v Use visual character mode
  • c Change the selected text

Helpful commands

v
Start visual character mode
V
Start visual line mode
t{char}
Move cursor to before character
f{char}
Move cursor to character
c
Change selected text
Stuck? Peek at a hint 3 hints · try it on your own first
  • Try using 'vt_' to select from cursor to before the underscore
  • Or use 'viw' to select inner word
  • Visual mode highlights the selected text

Premium Course

This is a premium course available exclusively to paid members.

Upgrade your membership to access this course and all premium content on the platform.

Upgrade to Premium

Access all premium courses

Unlimited lesson submissions

Track your progress

visual-character-mode-basics.txt

1" Read the task on the left.

2" A live Vim editor opens right here.

3" Finish the edits, then submit.

~

~

NORMAL 1,1   All

Ready to practice?

Take your time with the task — start whenever you're set.

Start Lesson