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

YAML to dotenv - 1226 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 16
  • Position: #20 / 262
  • Number of attempts: 16
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: #100 / 143
  • Number of attempts: 1
Fix the Scala Method - 287 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: 22
  • Position: #25 / 90
  • Number of attempts: 5
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: 18
  • Position: #27 / 120
  • Number of attempts: 12
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: 13
  • Position: #42 / 103
  • Number of attempts: 3
Reorganize Pokémon - 691 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 18
  • Position: #23 / 190
  • Number of attempts: 8
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: 15
  • Position: #21 / 83
  • Number of attempts: 6
extract struct tag in go - 142 entries

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

  • Best score: 29
  • Best player score: 42
  • Position: #22 / 36
  • Number of attempts: 3
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: 41
  • Position: #14 / 91
  • Number of attempts: 4
Markdown Blog Editing - 434 entries

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

  • Best score: 30
  • Best player score: 43
  • Position: #43 / 101
  • Number of attempts: 4
Search different SQL column with similar where clause - 314 entries

Replace a column in the where clause and convert all numbers from text to numeric, by replacing the leading 0 with the code 359.

  • Best score: 22
  • Best player score: 22
  • Position: #13 / 69
  • Number of attempts: 9
Remove adjacent duplicates - 646 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 19
  • Position: #13 / 162
  • Number of attempts: 13
Move to corresponding lines - 285 entries

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 33
  • Position: #56 / 66
  • Number of attempts: 3
Find anomalies - 161 entries

There is one special character per line

  • Best score: 30
  • Best player score: 59
  • Position: #35 / 43
  • Number of attempts: 4
New teacher - 1419 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 25
  • Position: #142 / 299
  • Number of attempts: 6
months to html list items - 1108 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 34
  • Position: #252 / 300
  • Number of attempts: 1
Quicksort - 2058 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 6
  • Position: #133 / 457
  • Number of attempts: 1
Populate 3D bone names list - 638 entries

Ran into this at work, excited to see how this gets optimized

  • Best score: 21
  • Best player score: 34
  • Position: #123 / 166
  • Number of attempts: 4
Find fix point of cos - 1444 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 15
  • Position: #261 / 427
  • Number of attempts: 4
delete swap - 1818 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #384 / 567
  • Number of attempts: 1
simple replacements - 1833 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 19
  • Position: #97 / 396
  • Number of attempts: 9
Inverting Lines - 1932 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 10
  • Position: #234 / 518
  • Number of attempts: 8
Python dataclasses - 1229 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 19
  • Position: #81 / 308
  • Number of attempts: 13
Modernise code - 1420 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 49
  • Position: #230 / 328
  • Number of attempts: 2
Rural Post - 4572 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 9
  • Position: #213 / 1116
  • Number of attempts: 11
Quote modules - 1095 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 31
  • Position: #230 / 286
  • Number of attempts: 1
Line under headers - 2072 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 24
  • Position: #22 / 510
  • Number of attempts: 5
Abdelrahman Madkour
Github:

entered into 27 challenges

contributed 0 challenges