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 - 611 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: #87 / 139
  • Number of attempts: 6
Create json from a .env file - 1303 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 61
  • Position: #159 / 303
  • Number of attempts: 9
Reordering properties - 1042 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: #113 / 240
  • Number of attempts: 4
Sort and Tag - 613 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: #92 / 125
  • Number of attempts: 5
Changing date formats - 615 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 118
  • Position: #134 / 170
  • Number of attempts: 4
YAML to dotenv - 1226 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 23
  • Position: #127 / 262
  • Number of attempts: 8
Change to ascending order - 448 entries

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

  • Best score: 17
  • Best player score: 107
  • Position: #87 / 109
  • Number of attempts: 3
Swap columns and transform to CSV format - 386 entries

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

  • Best score: 16
  • Best player score: 21
  • Position: #102 / 143
  • Number of attempts: 2
Fix the Scala Method - 286 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: #66 / 89
  • Number of attempts: 4
Change class fields from camel case to snake case - 526 entries

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

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

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

  • Best score: 13
  • Best player score: 19
  • Position: #85 / 103
  • Number of attempts: 4
Reorganize Pokémon - 691 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 24
  • Position: #145 / 190
  • Number of attempts: 3
Replace csv column if it's not empty - 248 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: #53 / 83
  • Number of attempts: 2
Convert plain text into a markdown table - 70 entries

Convert the table to markdown to make it more usable

  • Best score: 56
  • Best player score: 230
  • Position: #21 / 25
  • Number of attempts: 2
extract struct tag in go - 142 entries

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

  • Best score: 29
  • Best player score: 85
  • Position: #35 / 36
  • Number of attempts: 13
CaN yOuR ViM dO ThAt? #1 - 236 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: #71 / 91
  • Number of attempts: 3
Markdown Blog Editing - 434 entries

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

  • Best score: 30
  • Best player score: 49
  • Position: #59 / 101
  • Number of attempts: 2
Remove adjacent duplicates - 646 entries

Try to find a way to remove adjacent duplicate letters.

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

entered into 18 challenges

contributed 0 challenges