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 - 1329 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 45
  • Position: #74 / 309
  • Number of attempts: 6
Reordering properties - 1065 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: 54
  • Position: #72 / 244
  • Number of attempts: 5
Sort and Tag - 622 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: 119
  • Position: #90 / 127
  • Number of attempts: 2
Changing date formats - 615 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 89
  • Position: #106 / 170
  • Number of attempts: 5
YAML to dotenv - 1255 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 22
  • Position: #110 / 266
  • Number of attempts: 3
Swap columns and transform to CSV format - 387 entries

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

  • Best score: 16
  • Best player score: 19
  • Position: #91 / 144
  • Number of attempts: 2
Generate an entry for each month - 351 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: 37
  • Position: #26 / 84
  • Number of attempts: 4
Fix the git merge conflicts - 288 entries

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 50
  • Position: #26 / 78
  • Number of attempts: 3
Nested JSON Flattener - 115 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: 111
  • Position: #22 / 28
  • Number of attempts: 2
The Fibonacci Spacer - 149 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: 33
  • Position: #13 / 42
  • Number of attempts: 5
Fix the Scala Method - 289 entries

Fix the missing semicolons and the Int type, ensure the floating point division, and remove the unnecessary return.

  • Best score: 2
  • Best player score: 24
  • Position: #50 / 91
  • Number of attempts: 1
Change class fields from camel case to snake case - 526 entries

This is the reverse of the previous challenge: https://www.vimgolf.com/challenges/9v006705493c000000000513

  • Best score: 18
  • Best player score: 21
  • Position: #56 / 120
  • Number of attempts: 2
Append leading hyphen count to each line - 108 entries

Append the number of leading hyphens to the end of each line.

  • Best score: 23
  • Best player score: 25
  • Position: #20 / 31
  • Number of attempts: 2
Simple text editing with Vim - 13274 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #2069 / 3811
  • Number of attempts: 1
Gibson Starkweather
Github:

entered into 14 challenges

contributed 0 challenges