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

Swap function parameters and delete all comments in python.

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

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #46 / 221
  • Number of attempts: 3
Flip All Bits - 387 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: #90 / 119
  • Number of attempts: 2
Convert list of enums to list of localization terms - 213 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: #30 / 67
  • Number of attempts: 1
Create json from a .env file - 1682 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 52
  • Position: #138 / 411
  • Number of attempts: 3
Change to ascending order - 541 entries

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

  • Best score: 17
  • Best player score: 40
  • Position: #46 / 132
  • Number of attempts: 4
The Fibonacci Spacer - 172 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: #29 / 52
  • Number of attempts: 2
Reorganize Pokémon - 875 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 23
  • Position: #161 / 240
  • Number of attempts: 2
Remove adjacent duplicates - 727 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 23
  • Position: #86 / 182
  • Number of attempts: 4
Rearrange array to single level - 1829 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: #178 / 307
  • Number of attempts: 1
Salvatore Farina
Github:

entered into 10 challenges

contributed 0 challenges