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. - 424 entries

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 26
  • Position: #57 / 119
  • Number of attempts: 1
Delete the last function argument in python. - 336 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #46 / 127
  • Number of attempts: 3
Flip All Bits - 221 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: 52
  • Position: #57 / 78
  • Number of attempts: 2
Convert list of enums to list of localization terms - 173 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: 107
  • Position: #24 / 56
  • Number of attempts: 1
Create json from a .env file - 1619 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 52
  • Position: #133 / 394
  • Number of attempts: 3
Change to ascending order - 508 entries

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

  • Best score: 17
  • Best player score: 40
  • Position: #44 / 126
  • Number of attempts: 4
The Fibonacci Spacer - 164 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: 49
  • Position: #28 / 49
  • Number of attempts: 2
Reorganize Pokémon - 846 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 23
  • Position: #157 / 232
  • Number of attempts: 2
Remove adjacent duplicates - 707 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 23
  • Position: #84 / 176
  • Number of attempts: 4
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: 28
  • Position: #176 / 303
  • Number of attempts: 1
Salvatore Farina
Github:

entered into 10 challenges

contributed 0 challenges