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

Swap function parameters and delete all comments in python. - 335 entries

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 39
  • Position: #87 / 94
  • Number of attempts: 1
Delete the last function argument in python. - 292 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #30 / 111
  • Number of attempts: 3
Flip All Bits - 202 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: 26
  • Best player score: 44
  • Position: #35 / 69
  • Number of attempts: 5
Convert list of enums to list of localization terms - 162 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: 123
  • Position: #34 / 51
  • Number of attempts: 2
From brakets to parens - 1181 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: 55
  • Position: #224 / 258
  • Number of attempts: 2
Create json from a .env file - 1607 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 41
  • Position: #60 / 390
  • Number of attempts: 3
Sort and Tag - 688 entries

The goal is to sort these lines alphabetically, assign a unique identifier to each line in the format "[01]", "[02]", etc., and then restore the original order of the lines while preserving the assigned identifiers.

  • Best score: 36
  • Best player score: 37
  • Position: #22 / 146
  • Number of attempts: 1
YAML to dotenv - 1557 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 27
  • Position: #187 / 322
  • Number of attempts: 3
Swap columns and transform to CSV format - 452 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #75 / 164
  • Number of attempts: 4
Replace markdown sections with numbering - 314 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 63
  • Position: #43 / 86
  • Number of attempts: 1
Rearrange array to single level - 1802 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 31
  • Position: #196 / 303
  • Number of attempts: 4
Com(m)a Trouble - 3988 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 23
  • Position: #713 / 908
  • Number of attempts: 1
Yu
Github:

entered into 12 challenges

contributed 0 challenges