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

Reordering properties - 218 entries

Arrange the CSS lines for the #topbar selector based on their complete line length, from shortest to longest.

  • Best score: 24
  • Best player score: 81
  • Position: #34 / 54
  • Number of attempts: 2
Changing date formats - 219 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 69
  • Position: #33 / 71
  • Number of attempts: 2
YAML to dotenv - 396 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 16
  • Position: #16 / 101
  • Number of attempts: 8
Swap columns and transform to CSV format - 187 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #33 / 68
  • Number of attempts: 3
Generate an entry for each month - 163 entries

The input file contains a URI with a month in it. Generate the URIs for all the other months up to a couple of years

  • Best score: 27
  • Best player score: 82
  • Position: #39 / 48
  • Number of attempts: 4
Nested JSON Flattener - 32 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: 83
  • Position: #9 / 14
  • Number of attempts: 2
Fix the Scala Method - 138 entries

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

  • Best score: 9
  • Best player score: 28
  • Position: #39 / 50
  • Number of attempts: 1
Change class fields from camel case to snake case - 329 entries

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

  • Best score: 18
  • Best player score: 18
  • Position: #26 / 84
  • Number of attempts: 7
Change class fields from snake case to camel case - 176 entries

Change the class fields in this Scala class from snake case to camel case

  • Best score: 13
  • Best player score: 13
  • Position: #41 / 69
  • Number of attempts: 2
Reorganize Pokémon - 426 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 19
  • Position: #38 / 117
  • Number of attempts: 3
Replace csv column if it's not empty - 130 entries

Replace the credit_score_percentile column with the value 0.0 but leave the empty ones untouched

  • Best score: 15
  • Best player score: 15
  • Position: #19 / 49
  • Number of attempts: 6
CaN yOuR ViM dO ThAt? #1 - 134 entries

Tsoding's famous "Can your Vim do that?" https://youtu.be/Bafo3hhheHU?si=DfcT4sUEMTSAevnx&t=1091

  • Best score: 41
  • Best player score: 47
  • Position: #44 / 55
  • Number of attempts: 2
Move list of uuids into a SQL query - 78 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: 77
  • Position: #32 / 34
  • Number of attempts: 1
Fix timezone format - 249 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: 15
  • Position: #17 / 83
  • Number of attempts: 5
Remove adjacent duplicates - 497 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 20
  • Position: #24 / 130
  • Number of attempts: 6
Rearrange array to single level - 1379 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 24
  • Position: #104 / 223
  • Number of attempts: 3
Rearrange array to one line - 665 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 18
  • Position: #56 / 159
  • Number of attempts: 3
chujDK
Github:

entered into 17 challenges

contributed 0 challenges