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

hexagram binary tree - 133 entries

generate the binary tree that represents all possible hexagrams found in the book of changes (易经)

  • Best score: 23
  • Best player score: 65
  • Position: #26 / 31
  • Number of attempts: 1
Delete the last function argument in python. - 730 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #71 / 262
  • Number of attempts: 2
Flip All Bits - 509 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: 49
  • Position: #98 / 145
  • Number of attempts: 5
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: 94
  • Position: #51 / 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: 144
  • Position: #67 / 74
  • Number of attempts: 1
YAML to dotenv - 1654 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 24
  • Position: #180 / 347
  • Number of attempts: 6
Swap columns and transform to CSV format - 516 entries

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

  • Best score: 16
  • Best player score: 34
  • Position: #174 / 184
  • Number of attempts: 1
Fix the git merge conflicts - 394 entries

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 69
  • Position: #87 / 111
  • Number of attempts: 3
Nested JSON Flattener - 137 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: #30 / 32
  • Number of attempts: 1
Fix the Scala Method - 379 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: #62 / 126
  • Number of attempts: 2
Change class fields from camel case to snake case - 678 entries

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

  • Best score: 18
  • Best player score: 40
  • Position: #123 / 160
  • Number of attempts: 3
Reorganize Pokémon - 902 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 23
  • Position: #167 / 251
  • Number of attempts: 6
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: 75
  • Position: #70 / 83
  • Number of attempts: 2
Fix timezone format - 385 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: #64 / 126
  • Number of attempts: 4
Array transposition - 2482 entries

Transpose two arrays into one.

  • Best score: 7
  • Best player score: 29
  • Position: #377 / 462
  • Number of attempts: 2
Najeeb Al-Shabibi
Github:

entered into 15 challenges

contributed 0 challenges