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 - 228 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: #19 / 57
  • Number of attempts: 5
Changing date formats - 269 entries

Change the date format to Y/M/D.

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

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

  • Best score: 17
  • Best player score: 55
  • Position: #43 / 69
  • Number of attempts: 2
Swap columns and transform to CSV format - 221 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #19 / 80
  • Number of attempts: 3
Generate an entry for each month - 171 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: #49 / 51
  • Number of attempts: 1
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: 161
  • Position: #14 / 14
  • Number of attempts: 2
The Fibonacci Spacer - 86 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: #29 / 30
  • Number of attempts: 2
Change class fields from camel case to snake case - 374 entries

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

  • Best score: 18
  • Best player score: 21
  • Position: #41 / 92
  • Number of attempts: 2
Reorganize Pokémon - 465 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 21
  • Position: #68 / 127
  • Number of attempts: 2
Replace csv column if it's not empty - 145 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: #39 / 53
  • Number of attempts: 2
CaN yOuR ViM dO ThAt? #1 - 146 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 / 59
  • Number of attempts: 2
Heitor Dantas
Github:

entered into 11 challenges

contributed 0 challenges