Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put [challenge ID]

Played Challenges

Reordering properties - 825 entries

Arrange the CSS lines for the #topbar selector based on their complete line length, from shortest to longest.

  • Best score: 24
  • Best player score: 101
  • Position: #140 / 195
  • Number of attempts: 1
Changing date formats - 457 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 1135
  • Position: #140 / 140
  • Number of attempts: 1
YAML to dotenv - 963 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 26
  • Position: #122 / 211
  • Number of attempts: 7
Change to ascending order - 351 entries

Change each line of numbers consistently from descending to ascending order.

  • Best score: 17
  • Best player score: 153
  • Position: #81 / 94
  • Number of attempts: 1
Swap columns and transform to CSV format - 319 entries

Turn this spreadsheet output into a CSV file but first swap the columns

  • Best score: 16
  • Best player score: 317
  • Position: #118 / 118
  • Number of attempts: 1
Generate an entry for each month - 237 entries

The input file contains a URI with a month in it. Generate the URIs for all the other months up to a couple of years

  • Best score: 27
  • Best player score: 138
  • Position: #64 / 67
  • Number of attempts: 2
Fix the git merge conflicts - 214 entries

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 67
  • Position: #47 / 61
  • Number of attempts: 1
Reorganize Pokémon - 625 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 33
  • Position: #156 / 170
  • Number of attempts: 1
Remove adjacent duplicates - 578 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 21
  • Position: #47 / 150
  • Number of attempts: 6
Rearrange array to single level - 1528 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 40
  • Position: #206 / 254
  • Number of attempts: 4
Copy punctuation - 599 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 82
  • Position: #131 / 149
  • Number of attempts: 1
New teacher - 1376 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 30
  • Position: #216 / 287
  • Number of attempts: 5
months to html list items - 1088 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 38
  • Position: #266 / 295
  • Number of attempts: 2
EDN reformat - 1175 entries

The goal is to make the code more readable and concise while maintaining its functionality.

  • Best score: 17
  • Best player score: 72
  • Position: #157 / 167
  • Number of attempts: 2
Python dataclasses - 1215 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 36
  • Position: #257 / 301
  • Number of attempts: 5
swap number pairs - 2128 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 44
  • Position: #340 / 388
  • Number of attempts: 1
Multiline to Single Line - 737 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Position: #261 / 313
  • Number of attempts: 4
Yo To Hello - 1151 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 10
  • Position: #408 / 533
  • Number of attempts: 2
prepend * to every non-blank line - 6358 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 12
  • Position: #815 / 1551
  • Number of attempts: 6
Add semicolons - 10899 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 12
  • Position: #1965 / 3078
  • Number of attempts: 3
Collect List - 4312 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 18
  • Position: #1096 / 1193
  • Number of attempts: 3
lovebigwei
Github:

entered into 21 challenges

contributed 0 challenges