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

Filename Flip - 196 entries

Rearrange the MP3 filenames so that the identifier comes before the name.

  • Best score: 15
  • Best player score: 16
  • Position: #11 / 70
  • Number of attempts: 2
Swap function parameters and delete all comments in python. - 1073 entries

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 20
  • Position: #61 / 262
  • Number of attempts: 4
Delete the last function argument in python. - 729 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #16 / 261
  • Number of attempts: 1
Flip All Bits - 503 entries

Perform a bitwise NOT operation on each bit, meaning that bits that are 0 become 1, and those that are 1 become 0.

  • Best score: 24
  • Best player score: 29
  • Position: #13 / 144
  • Number of attempts: 2
Find the devices that have no revoked time, and extract out the duration left on their leases. - 255 entries

Extract non-revoked devices and the duration of their leases.

  • Best score: 49
  • Best player score: 59
  • Position: #16 / 60
  • Number of attempts: 2
Convert list of enums to list of localization terms - 262 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: 86
  • Position: #4 / 74
  • Number of attempts: 5
From brakets to parens - 1356 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: 25
  • Position: #4 / 309
  • Number of attempts: 4
π - 344 entries

1200 π chars

  • Best score: 16
  • Best player score: 16
  • Position: #2 / 84
  • Number of attempts: 1
Move list of uuids into a SQL query - 254 entries

Take the list of UUIDs and use them as a filter in the where statement of a SQL query

  • Best score: 57
  • Best player score: 63
  • Position: #24 / 83
  • Number of attempts: 1
Mirror image - 144 entries

Add the second eye

  • Best score: 15
  • Best player score: 20
  • Position: #13 / 39
  • Number of attempts: 3
Python dataclasses - 1277 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 19
  • Position: #82 / 325
  • Number of attempts: 1
citizen_hacks_2019_part2 - 40 entries

For the Citizen Hacks 2019 Vim competition

  • Best score: 40
  • Best player score: 40
  • Position: #1 / 15
  • Number of attempts: 1
ZEraX4
Github:

entered into 12 challenges

contributed 0 challenges