Recenter the cursor line with zz, move it to the top with zt, or to the bottom with zb. These commands control where the current line sits in the window.
Commands you practise
zz
Redraw the screen to center the current line. It instantly brings your focus back to the middle of the window without moving your cursor.
zt
Redraw the screen to place the current line at the very top. Perfect for focusing on a block of code with all its subsequent lines visible below.
zb
Redraw the screen with the cursor line at the bottom. Perfect for revealing the context of the code you just wrote above.
Levels
Center Stage (easy): Jump to line 12, center the view on it, and fix the extra 'x' at the end of the return statement.
Top of the Class (medium): Bring the processor function on line 14 to the top of the window, and fix the 'FACTORR' typo.
Bottoms Up (hard): Reduce timeout to 500 on line 5, then move line 18 to the bottom of the window and fix the retry_count to 3.
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: Screen Navigation. See the whole skill map.