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 - 807 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: 24
  • Best player score: 39
  • Position: #112 / 184
  • Number of attempts: 6
Create json from a .env file - 1463 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 61
  • Position: #175 / 340
  • Number of attempts: 9
Reordering properties - 1110 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: 75
  • Position: #124 / 260
  • Number of attempts: 4
Sort and Tag - 663 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: 124
  • Position: #101 / 137
  • Number of attempts: 5
Changing date formats - 680 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 118
  • Position: #143 / 185
  • Number of attempts: 4
YAML to dotenv - 1349 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 22
  • Position: #123 / 283
  • Number of attempts: 11
Change to ascending order - 483 entries

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

  • Best score: 17
  • Best player score: 107
  • Position: #93 / 117
  • Number of attempts: 3
Swap columns and transform to CSV format - 407 entries

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

  • Best score: 16
  • Best player score: 21
  • Position: #104 / 150
  • Number of attempts: 2
Fix the Scala Method - 296 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: 27
  • Position: #67 / 94
  • Number of attempts: 4
Change class fields from camel case to snake case - 547 entries

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

  • Best score: 18
  • Best player score: 40
  • Position: #97 / 127
  • Number of attempts: 4
Change class fields from snake case to camel case - 290 entries

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

  • Best score: 13
  • Best player score: 19
  • Position: #90 / 108
  • Number of attempts: 4
Reorganize Pokémon - 736 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 24
  • Position: #151 / 204
  • Number of attempts: 3
Replace csv column if it's not empty - 255 entries

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

  • Best score: 15
  • Best player score: 16
  • Position: #54 / 87
  • Number of attempts: 2
Convert plain text into a markdown table - 84 entries

Convert the table to markdown to make it more usable

  • Best score: 56
  • Best player score: 230
  • Position: #23 / 27
  • Number of attempts: 2
extract struct tag in go - 149 entries

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

  • Best score: 29
  • Best player score: 85
  • Position: #38 / 41
  • Number of attempts: 13
CaN yOuR ViM dO ThAt? #1 - 254 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: #75 / 99
  • Number of attempts: 3
Markdown Blog Editing - 451 entries

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

  • Best score: 30
  • Best player score: 49
  • Position: #63 / 105
  • Number of attempts: 2
Remove adjacent duplicates - 658 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 43
  • Position: #138 / 164
  • Number of attempts: 6
Matthew Cooper
Github:

entered into 18 challenges

contributed 0 challenges