Repeat Search Result in Vim

After a search, use n to go to the next match and N to go to the previous one. They reuse your last search pattern.

Commands you practise

n
Search with /, then press n to fly to the next match (and N for the previous one). It is the ultimate way to navigate repetitive patterns instantly.
N
Search forward with /, then use N to find the previous match in the opposite direction. It is the perfect way to backtrack when you overshoot.

Levels

  1. Next Task Please (easy): Delete all the lines marked with TODO.
  2. Spoiled Bunches (medium): Discard all the 'Rotten' items from the list using search navigation.
  3. Squeeze from the Middle (hard): Delete only the two inner error logs closest to the current state marker.

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: pattern search. See the whole skill map.