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

A simple everyday task.

  • Best score: 38
  • Best player score: 45
  • Position: #93 / 411
  • Number of attempts: 6
Reordering properties - 1371 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: #91 / 297
  • Number of attempts: 5
Sort and Tag - 731 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: #108 / 154
  • Number of attempts: 2
Changing date formats - 749 entries

Change the date format to Y/M/D.

  • Best score: 36
  • Best player score: 89
  • Position: #124 / 210
  • Number of attempts: 5
YAML to dotenv - 1627 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 22
  • Position: #138 / 339
  • Number of attempts: 3
Swap columns and transform to CSV format - 487 entries

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

  • Best score: 16
  • Best player score: 19
  • Position: #107 / 175
  • Number of attempts: 2
Generate an entry for each month - 387 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 / 97
  • Number of attempts: 4
Fix the git merge conflicts - 348 entries

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 50
  • Position: #31 / 104
  • Number of attempts: 3
Nested JSON Flattener - 133 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: #24 / 31
  • Number of attempts: 2
The Fibonacci Spacer - 172 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: 14
  • Best player score: 33
  • Position: #14 / 52
  • Number of attempts: 5
Fix the Scala Method - 374 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: #62 / 123
  • Number of attempts: 1
Change class fields from camel case to snake case - 664 entries

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

  • Best score: 18
  • Best player score: 21
  • Position: #67 / 153
  • Number of attempts: 2
Append leading hyphen count to each line - 148 entries

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

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

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

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

entered into 14 challenges

contributed 0 challenges