Join Lines in Vim

Join the next line onto the current one with J. Counts let you join multiple lines in a single command.

Commands you practise

J
Join the line below onto the current one, automatically managing spaces. Use a count like 3J to merge multiple lines in a single tap.

Levels

  1. Connective Tissue (easy): Join the split variable definitions into single lines.
  2. Logistical Merging (medium): Join the multi-line address fields into single-line entries using counts.
  3. CSS Compressor (hard): Compress each multi-line CSS rule into a single line efficiently.

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: Tidying Commands. See the whole skill map.