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

Delete the last function argument in python. - 478 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #71 / 174
  • Number of attempts: 2
Flip All Bits - 299 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: 49
  • Position: #64 / 97
  • Number of attempts: 5
Find the devices that have no revoked time, and extract out the duration left on their leases. - 169 entries

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

  • Best score: 50
  • Best player score: 94
  • Position: #40 / 48
  • Number of attempts: 2
Convert list of enums to list of localization terms - 183 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: 144
  • Position: #53 / 60
  • Number of attempts: 1
YAML to dotenv - 1581 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 24
  • Position: #169 / 330
  • Number of attempts: 6
Swap columns and transform to CSV format - 460 entries

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

  • Best score: 16
  • Best player score: 34
  • Position: #159 / 168
  • Number of attempts: 1
Fix the git merge conflicts - 342 entries

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 69
  • Position: #79 / 102
  • Number of attempts: 3
Nested JSON Flattener - 133 entries

Transform a deeply nested JSON structure into a flattened key-value format where each path is represented by dot notation

  • Best score: 44
  • Best player score: 251
  • Position: #29 / 31
  • Number of attempts: 1
Fix the Scala Method - 350 entries

Fix the missing semicolons and the Int type, ensure the floating point division, and remove the unnecessary return.

  • Best score: 2
  • Best player score: 23
  • Position: #59 / 117
  • Number of attempts: 2
Change class fields from camel case to snake case - 651 entries

This is the reverse of the previous challenge: https://www.vimgolf.com/challenges/9v006705493c000000000513

  • Best score: 18
  • Best player score: 40
  • Position: #116 / 149
  • Number of attempts: 3
Reorganize Pokémon - 858 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 23
  • Position: #159 / 235
  • Number of attempts: 6
Move list of uuids into a SQL query - 245 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: 75
  • Position: #69 / 82
  • Number of attempts: 2
Fix timezone format - 345 entries

Add the missing T and Z in the datetime field. There should be a T instead of the space, and a Z at the end of the datetime. `2024-08-31 18:32:00;` -> `2024-08-31T18:32:00Z;`

  • Best score: 15
  • Best player score: 17
  • Position: #60 / 114
  • Number of attempts: 4
Array transposition - 2474 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 29
  • Position: #375 / 459
  • Number of attempts: 2
Najeeb Al-Shabibi
Github:

entered into 14 challenges

contributed 0 challenges