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

From brakets to parens - 275 entries

This is one of the most common problem when you wrap an array for error handling. Vim is useful when you convert foo[i][j][k] into foo(i, j, k) for many times.

  • Best score: 25
  • Best player score: 34
  • Position: #34 / 65
  • Number of attempts: 3
Create json from a .env file - 998 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 42
  • Position: #39 / 230
  • Number of attempts: 6
Sort and Tag - 532 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: 36
  • Position: #14 / 103
  • Number of attempts: 25
YAML to dotenv - 1073 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 16
  • Position: #43 / 236
  • Number of attempts: 10
Change to ascending order - 403 entries

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

  • Best score: 17
  • Best player score: 49
  • Position: #58 / 100
  • Number of attempts: 14
Swap columns and transform to CSV format - 340 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #60 / 124
  • Number of attempts: 4
Generate an entry for each month - 274 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: 32
  • Position: #13 / 72
  • Number of attempts: 13
extract struct tag in go - 112 entries

Can you extract all struct tags in the fewest keystrokes possible?

  • Best score: 29
  • Best player score: 56
  • Position: #28 / 32
  • Number of attempts: 3
CaN yOuR ViM dO ThAt? #2 - 67 entries

Tsoding's famous "Can your Vim do that?" https://www.youtube.com/watch?v=F4xc4jQO7ck&t=1429s

  • Best score: 49
  • Best player score: 74
  • Position: #16 / 18
  • Number of attempts: 3
CaN yOuR ViM dO ThAt? #1 - 204 entries

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

  • Best score: 41
  • Best player score: 42
  • Position: #22 / 80
  • Number of attempts: 2
Benjamin
Twitter2:

entered into 10 challenges

contributed 0 challenges