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

Create json from a .env file - 736 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 41
  • Position: #30 / 169
  • Number of attempts: 10
Reordering properties - 825 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: 31
  • Position: #13 / 195
  • Number of attempts: 25
Sort and Tag - 438 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: #12 / 94
  • Number of attempts: 16
Changing date formats - 456 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 40
  • Position: #8 / 139
  • Number of attempts: 10
YAML to dotenv - 963 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 19
  • Position: #67 / 211
  • Number of attempts: 7
Change to ascending order - 351 entries

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

  • Best score: 17
  • Best player score: 35
  • Position: #27 / 94
  • Number of attempts: 4
Swap columns and transform to CSV format - 318 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #54 / 117
  • Number of attempts: 3
Reorganize Pokémon - 625 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 22
  • Position: #118 / 170
  • Number of attempts: 1
extract struct tag in go - 89 entries

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

  • Best score: 29
  • Best player score: 38
  • Position: #13 / 29
  • Number of attempts: 6
CaN yOuR ViM dO ThAt? #1 - 181 entries

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

  • Best score: 41
  • Best player score: 46
  • Position: #48 / 73
  • Number of attempts: 1
Append leading hyphen count to each line - 84 entries

Append the number of leading hyphens to the end of each line.

  • Best score: 23
  • Best player score: 32
  • Position: #21 / 27
  • Number of attempts: 2
Move list of uuids into a SQL query - 157 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: 96
  • Position: #54 / 54
  • Number of attempts: 1
Markdown Blog Editing - 370 entries

Convert the given link text in start file to a markdown link list.

  • Best score: 30
  • Best player score: 42
  • Position: #36 / 86
  • Number of attempts: 4
Fix timezone format - 298 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: 19
  • Position: #71 / 96
  • Number of attempts: 1
Rearrange array to single level - 1527 entries

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

  • Best score: 14
  • Best player score: 78
  • Position: #235 / 253
  • Number of attempts: 2
Change the content of a string - 1649 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 28
  • Position: #526 / 609
  • Number of attempts: 1
Sort and add attributes - 1501 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 33
  • Position: #306 / 582
  • Number of attempts: 2
Reconstruct the Sentence - 1651 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 19
  • Best player score: 24
  • Position: #328 / 435
  • Number of attempts: 2
Simple text editing with Vim - 13119 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 17
  • Position: #2590 / 3773
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7246 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 10
  • Best player score: 55
  • Position: #1552 / 1788
  • Number of attempts: 1
migoohao
Github:

entered into 20 challenges

contributed 0 challenges