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

A simple everyday task.

  • Best score: 39
  • Best player score: 45
  • Position: #83 / 356
  • Number of attempts: 6
Reordering properties - 1162 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: #81 / 272
  • Number of attempts: 5
Sort and Tag - 676 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: #100 / 140
  • Number of attempts: 2
Changing date formats - 688 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 89
  • Position: #116 / 189
  • Number of attempts: 5
YAML to dotenv - 1476 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 22
  • Position: #125 / 301
  • Number of attempts: 3
Swap columns and transform to CSV format - 426 entries

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

  • Best score: 16
  • Best player score: 19
  • Position: #96 / 154
  • Number of attempts: 2
Generate an entry for each month - 369 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: #29 / 91
  • Number of attempts: 4
Fix the git merge conflicts - 320 entries

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 50
  • Position: #28 / 91
  • Number of attempts: 3
Nested JSON Flattener - 126 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: #23 / 29
  • Number of attempts: 2
The Fibonacci Spacer - 157 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 / 47
  • Number of attempts: 5
Fix the Scala Method - 308 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: #54 / 99
  • Number of attempts: 1
Change class fields from camel case to snake case - 586 entries

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

  • Best score: 18
  • Best player score: 21
  • Position: #62 / 134
  • Number of attempts: 2
Append leading hyphen count to each line - 126 entries

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

  • Best score: 23
  • Best player score: 25
  • Position: #22 / 35
  • Number of attempts: 2
Simple text editing with Vim - 13425 entries

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

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

entered into 14 challenges

contributed 0 challenges