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 - 149 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: 153
  • Position: #39 / 45
  • Number of attempts: 1
From brakets to parens - 1103 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: 50
  • Position: #200 / 241
  • Number of attempts: 2
YAML to dotenv - 1527 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 41
  • Position: #262 / 312
  • Number of attempts: 1
Fix the Scala Method - 336 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: 32
  • Position: #99 / 110
  • Number of attempts: 1
Search different SQL column with similar where clause - 336 entries

Replace a column in the where clause and convert all numbers from text to numeric, by replacing the leading 0 with the code 359.

  • Best score: 22
  • Best player score: 39
  • Position: #74 / 79
  • Number of attempts: 1
Rearrange array to one line - 840 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 28
  • Position: #160 / 197
  • Number of attempts: 1
Copy punctuation - 701 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 48
  • Position: #126 / 172
  • Number of attempts: 1
Stefano Bertoli
Github:

entered into 7 challenges

contributed 0 challenges