Line Changes in Vim

Use cc to change the entire current line or C to change from the cursor to the end of the line. Both end in Insert mode.

Commands you practise

cc
Use cc to clear the entire current line and begin typing, preserving your indentation automatically. It is the perfect shortcut to rewrite lines in one go.
C
C deletes from the cursor to the end of the line and drops you into Insert mode. It is the ultra-fast way to rewrite line endings.

Levels

  1. Pythonic Rewrite (easy): Replace the TODO comment with a proper error statement while preserving indentation.
  2. Switching to Production (medium): Update the dev API host and token to production values using C.
  3. Database Config Refactor (hard): Refactor the config file's keys, values, and comments using cc and C.

Each level opens a real Neovim session in your browser with a start file and a target file. Edit one into the other in as few keystrokes as you can, then race the vimbot's solution.

Part of VimGolf.ai Premium ($10 once, lifetime). Region: change and substitute (operator). See the whole skill map.