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

Filling braces - 373 entries

Inspired by a question on CoDidact (https://software.codidact.com/posts/296501), I wondered if Vim could offer a satisfactory ‘solution’ to this problem.

  • Best score: 24
  • Best player score: 25
  • Position: #29 / 123
  • Number of attempts: 8
Even and Odd - 344 entries

separate the even numbers from the odd numbers

  • Best score: 13
  • Best player score: 14
  • Position: #26 / 82
  • Number of attempts: 9
Modifying .XCompose - 95 entries

You just wrote some lines in .XCompose, but now you want the compose sequences to be more verbose. Change the compose sequence for each Greek letter to its name.

  • Best score: 33
  • Best player score: 35
  • Position: #16 / 24
  • Number of attempts: 5
Swap function parameters and delete all comments in python. - 1021 entries

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 22
  • Position: #92 / 250
  • Number of attempts: 4
Convert list of enums to list of localization terms - 256 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: 127
  • Position: #52 / 73
  • Number of attempts: 5
From brakets to parens - 1329 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: 45
  • Position: #234 / 302
  • Number of attempts: 1
Changing date formats - 755 entries

Change the date format to Y/M/D.

  • Best score: 36
  • Best player score: 68
  • Position: #81 / 212
  • Number of attempts: 4
adwaymalhotra
Github:

entered into 7 challenges

contributed 0 challenges