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 - 101 entries

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

  • Best score: 24
  • Best player score: 65
  • Position: #20 / 24
  • Number of attempts: 1
Delete the last function argument in python. - 649 entries

Delete the last function argument in this python script.

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

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

  • Best score: 50
  • Best player score: 94
  • Position: #44 / 53
  • Number of attempts: 2
Convert list of enums to list of localization terms - 228 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: #61 / 69
  • Number of attempts: 1
YAML to dotenv - 1637 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 24
  • Position: #176 / 342
  • Number of attempts: 6
Swap columns and transform to CSV format - 494 entries

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

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

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 69
  • Position: #83 / 107
  • 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 - 375 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: #61 / 124
  • Number of attempts: 2
Change class fields from camel case to snake case - 669 entries

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

  • Best score: 18
  • Best player score: 40
  • Position: #120 / 154
  • Number of attempts: 3
Reorganize Pokémon - 880 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 23
  • Position: #162 / 242
  • 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 - 372 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: #62 / 120
  • Number of attempts: 4
Array transposition - 2481 entries

Transpose two arrays into one.

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

entered into 15 challenges

contributed 0 challenges