Global Commands in Vim

Apply a command to every line matching a pattern in one stroke.

Commands you practise

:g/{pattern}/d
Delete every line matching a pattern across the entire file. It is the ultimate tool to instantly filter out logs, comments, or completed tasks.

Levels

  1. De-Bugging (easy): Purge all debug messages from this log output in one clean strike.
  2. Mind the Gap (medium): Remove all empty lines from this JSON structure using a global command.
  3. Silent Status (hard): Purge all console logs, then change the session status to active.

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: Find & Replace. See the whole skill map.