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 - 1306 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: #169 / 295
  • Number of attempts: 6
Create json from a .env file - 1716 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 61
  • Position: #201 / 416
  • Number of attempts: 9
Reordering properties - 1372 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: #150 / 298
  • Number of attempts: 4
Sort and Tag - 737 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: #112 / 156
  • Number of attempts: 5
Changing date formats - 751 entries

Change the date format to Y/M/D.

  • Best score: 36
  • Best player score: 118
  • Position: #161 / 211
  • Number of attempts: 4
YAML to dotenv - 1637 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 22
  • Position: #145 / 342
  • Number of attempts: 11
Change to ascending order - 549 entries

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

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

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

  • Best score: 16
  • Best player score: 21
  • Position: #124 / 177
  • Number of attempts: 2
Fix the Scala Method - 375 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: #81 / 124
  • Number of attempts: 4
Change class fields from camel case to snake case - 669 entries

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

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

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

  • Best score: 13
  • Best player score: 19
  • Position: #99 / 122
  • Number of attempts: 4
Reorganize Pokémon - 880 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 24
  • Position: #171 / 242
  • Number of attempts: 3
Replace csv column if it's not empty - 310 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: #59 / 100
  • Number of attempts: 2
Convert plain text into a markdown table - 104 entries

Convert the table to markdown to make it more usable

  • Best score: 56
  • Best player score: 230
  • Position: #28 / 34
  • Number of attempts: 2
extract struct tag in go - 164 entries

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

  • Best score: 29
  • Best player score: 85
  • Position: #45 / 49
  • Number of attempts: 13
CaN yOuR ViM dO ThAt? #1 - 297 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: #82 / 118
  • Number of attempts: 3
Markdown Blog Editing - 485 entries

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

  • Best score: 30
  • Best player score: 49
  • Position: #66 / 117
  • Number of attempts: 2
Remove adjacent duplicates - 727 entries

Try to find a way to remove adjacent duplicate letters.

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

entered into 18 challenges

contributed 0 challenges