Line Surgery in Vim

Move or copy a line to anywhere else in the file with a single Ex command: :m{address} relocates it, :t{address} duplicates it. No yank-and-paste dance required.

Commands you practise

:m{address}
Move the current line to any target line number. Use :m0 to instantly teleport a line to the very top of the file.
:t{address}
Duplicate the current line directly to any target line number. Skip the yank-and-paste dance entirely.

Levels

  1. To the Top! (easy): Bring the title line to the very top of the file in one command.
  2. Card Separator (medium): Duplicate the horizontal rule from the first card into the second card with a single command.
  3. Envirosurgery (hard): Copy the setup and move the cleanup in test_beta to their proper places.

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.