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

Create json from a .env file - 749 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 39
  • Position: #16 / 172
  • Number of attempts: 9
Sort and Tag - 446 entries

The goal is to sort these lines alphabetically, assign a unique identifier to each line in the format "[01]", "[02]", etc., and then restore the original order of the lines while preserving the assigned identifiers.

  • Best score: 36
  • Best player score: 37
  • Position: #14 / 94
  • Number of attempts: 11
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: 16
  • Position: #7 / 118
  • Number of attempts: 7
Nested JSON Flattener - 78 entries

Transform a deeply nested JSON structure into a flattened key-value format where each path is represented by dot notation

  • Best score: 44
  • Best player score: 56
  • Position: #6 / 22
  • Number of attempts: 9
The Fibonacci Spacer - 135 entries

Split the words, remove punctuation and add spaces before each line following the Fibonacci sequence (0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89)

  • Best score: 25
  • Best player score: 25
  • Position: #5 / 39
  • Number of attempts: 11
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: 19
  • Position: #8 / 149
  • Number of attempts: 12
New teacher - 1376 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 19
  • Position: #19 / 287
  • Number of attempts: 12
Prime Numbers - 385 entries

List the first 100 prime numbers.

  • Best score: 34
  • Best player score: 39
  • Position: #31 / 107
  • Number of attempts: 9
Daniel Fleischman
Github:

entered into 8 challenges

contributed 0 challenges