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 - 228 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: #37 / 69
  • Number of attempts: 3
From brakets to parens - 1306 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: #153 / 295
  • Number of attempts: 2
π - 327 entries

1200 π chars

  • Best score: 16
  • Best player score: 1219
  • Position: #77 / 80
  • Number of attempts: 1
Reordering properties - 1372 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: #194 / 298
  • Number of attempts: 2
Changing date formats - 751 entries

Change the date format to Y/M/D.

  • Best score: 36
  • Best player score: 85
  • Position: #117 / 211
  • Number of attempts: 1
YAML to dotenv - 1637 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 28
  • Position: #211 / 342
  • Number of attempts: 3
Change to ascending order - 548 entries

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

  • Best score: 17
  • Best player score: 73
  • Position: #98 / 134
  • Number of attempts: 2
Swap columns and transform to CSV format - 491 entries

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

  • Best score: 16
  • Best player score: 29
  • Position: #156 / 176
  • Number of attempts: 1
Nested JSON Flattener - 137 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: #31 / 32
  • 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: 74
  • Position: #41 / 52
  • Number of attempts: 1
Replace markdown sections with numbering - 323 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 60
  • Position: #42 / 90
  • Number of attempts: 3
Reorganize Pokémon - 880 entries

Change the format of the each line and sort alphabetically.

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

entered into 12 challenges

contributed 0 challenges