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

Sort and Tag - 71 entries

The goal is to sort these lines alphabetically, assign a unique identifier to each line in the format "[01]", "[02]", etc., and then restore the original order of the lines while preserving the assigned identifiers.

  • Best score: 36
  • Best player score: 51
  • Position: #9 / 22
  • Number of attempts: 5
Changing date formats - 139 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 128
  • Position: #37 / 45
  • Number of attempts: 2
Change to ascending order - 184 entries

Change each line of numbers consistently from descending to ascending order.

  • Best score: 17
  • Best player score: 55
  • Position: #33 / 50
  • Number of attempts: 2
Swap columns and transform to CSV format - 106 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #16 / 43
  • Number of attempts: 3
Generate an entry for each month - 129 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: 146
  • Position: #35 / 37
  • Number of attempts: 1
Nested JSON Flattener - 30 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: 161
  • Position: #13 / 13
  • Number of attempts: 2
The Fibonacci Spacer - 59 entries

Split the words, remove punctuation and add spaces before each line following the Fibonacci sequence (0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89)

  • Best score: 25
  • Best player score: 109
  • Position: #22 / 23
  • Number of attempts: 2
Change class fields from camel case to snake case - 299 entries

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

  • Best score: 18
  • Best player score: 21
  • Position: #36 / 77
  • Number of attempts: 2
Reorganize Pokémon - 335 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 21
  • Position: #58 / 89
  • Number of attempts: 2
Replace csv column if it's not empty - 106 entries

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

  • Best score: 15
  • Best player score: 17
  • Position: #32 / 43
  • Number of attempts: 2
CaN yOuR ViM dO ThAt? #1 - 97 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: #35 / 42
  • Number of attempts: 2
Heitor Dantas
Github:

entered into 11 challenges

contributed 0 challenges