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

A simple everyday task.

  • Best score: 39
  • Best player score: 45
  • Position: #43 / 175
  • Number of attempts: 6
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: 54
  • Position: #57 / 195
  • Number of attempts: 5
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: 119
  • Position: #71 / 94
  • Number of attempts: 2
Changing date formats - 477 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 89
  • Position: #86 / 142
  • Number of attempts: 5
YAML to dotenv - 975 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 22
  • Position: #89 / 213
  • Number of attempts: 3
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: 19
  • Position: #78 / 118
  • Number of attempts: 2
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: 37
  • Position: #19 / 67
  • Number of attempts: 4
Fix the git merge conflicts - 214 entries

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 50
  • Position: #21 / 61
  • Number of attempts: 3
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: 111
  • Position: #18 / 22
  • Number of attempts: 2
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: 33
  • Position: #12 / 39
  • Number of attempts: 5
Fix the Scala Method - 236 entries

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

  • Best score: 9
  • Best player score: 24
  • Position: #43 / 75
  • Number of attempts: 1
Change class fields from camel case to snake case - 457 entries

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

  • Best score: 18
  • Best player score: 21
  • Position: #49 / 110
  • Number of attempts: 2
Append leading hyphen count to each line - 84 entries

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

  • Best score: 23
  • Best player score: 25
  • Position: #16 / 27
  • Number of attempts: 2
Simple text editing with Vim - 13134 entries

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

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

entered into 14 challenges

contributed 0 challenges