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

Convert list of enums to list of localization terms - 142 entries

While making my game Piloteer, I had a large list of TaskTypes and needed to convert them to an equivalent list of localization terms, to be used when translating the game's text into different languages.

  • Best score: 75
  • Best player score: 113
  • Position: #23 / 41
  • Number of attempts: 3
From brakets to parens - 1098 entries

This is one of the most common problem when you wrap an array for error handling. Vim is useful when you convert foo[i][j][k] into foo(i, j, k) for many times.

  • Best score: 24
  • Best player score: 37
  • Position: #125 / 239
  • Number of attempts: 2
π - 292 entries

1200 π chars

  • Best score: 16
  • Best player score: 1219
  • Position: #67 / 69
  • Number of attempts: 1
Reordering properties - 1212 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: 87
  • Position: #177 / 277
  • Number of attempts: 2
Changing date formats - 708 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 85
  • Position: #111 / 195
  • Number of attempts: 1
YAML to dotenv - 1527 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 28
  • Position: #196 / 312
  • Number of attempts: 3
Change to ascending order - 500 entries

Change each line of numbers consistently from descending to ascending order.

  • Best score: 17
  • Best player score: 73
  • Position: #88 / 125
  • Number of attempts: 2
Swap columns and transform to CSV format - 439 entries

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

  • Best score: 16
  • Best player score: 29
  • Position: #142 / 159
  • Number of attempts: 1
Nested JSON Flattener - 132 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: 277
  • Position: #29 / 30
  • Number of attempts: 2
The Fibonacci Spacer - 161 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: 74
  • Position: #38 / 48
  • Number of attempts: 1
Replace markdown sections with numbering - 308 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 60
  • Position: #39 / 84
  • Number of attempts: 3
Reorganize Pokémon - 821 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 38
  • Position: #210 / 224
  • Number of attempts: 2
Seagull2004
Github:

entered into 12 challenges

contributed 0 challenges