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 - 1257 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: #159 / 281
  • Number of attempts: 2
Changing date formats - 710 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 69
  • Position: #80 / 197
  • Number of attempts: 2
YAML to dotenv - 1555 entries

Convert this YAML config file to a .env file.

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

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

  • Best score: 16
  • Best player score: 17
  • Position: #35 / 163
  • Number of attempts: 3
Generate an entry for each month - 374 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: #76 / 93
  • Number of attempts: 4
Nested JSON Flattener - 132 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: #20 / 30
  • Number of attempts: 2
Fix the Scala Method - 340 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: 28
  • Position: #78 / 113
  • Number of attempts: 1
Change class fields from camel case to snake case - 628 entries

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

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

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

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

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 19
  • Position: #59 / 227
  • Number of attempts: 3
Replace csv column if it's not empty - 273 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 / 93
  • Number of attempts: 6
CaN yOuR ViM dO ThAt? #1 - 277 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: #74 / 110
  • Number of attempts: 2
Move list of uuids into a SQL query - 232 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: #69 / 76
  • Number of attempts: 1
Fix timezone format - 333 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 / 109
  • Number of attempts: 5
Remove adjacent duplicates - 705 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 20
  • Position: #35 / 175
  • Number of attempts: 6
Rearrange array to single level - 1797 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: #130 / 301
  • Number of attempts: 3
Rearrange array to one line - 852 entries

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

  • Best score: 13
  • Best player score: 18
  • Position: #74 / 199
  • Number of attempts: 3
Column wise pasting - 257 entries

Make a table from 3 columns

  • Best score: 17
  • Best player score: 63
  • Position: #52 / 54
  • Number of attempts: 1
chujDK
Github:

entered into 18 challenges

contributed 0 challenges