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 - 1654 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 16
  • Position: #20 / 347
  • Number of attempts: 16
Swap columns and transform to CSV format - 516 entries

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

  • Best score: 16
  • Best player score: 21
  • Position: #127 / 184
  • Number of attempts: 1
Fix the Scala Method - 379 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 / 126
  • Number of attempts: 5
Change class fields from camel case to snake case - 678 entries

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

  • Best score: 18
  • Best player score: 18
  • Position: #27 / 160
  • Number of attempts: 12
Change class fields from snake case to camel case - 336 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #42 / 127
  • Number of attempts: 3
Reorganize Pokémon - 902 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 18
  • Position: #23 / 251
  • Number of attempts: 8
Replace csv column if it's not empty - 317 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 / 103
  • Number of attempts: 6
extract struct tag in go - 174 entries

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

  • Best score: 29
  • Best player score: 42
  • Position: #23 / 51
  • Number of attempts: 3
CaN yOuR ViM dO ThAt? #1 - 309 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 / 123
  • Number of attempts: 4
Markdown Blog Editing - 488 entries

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

  • Best score: 30
  • Best player score: 43
  • Position: #48 / 119
  • Number of attempts: 4
Search different SQL column with similar where clause - 363 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 / 87
  • Number of attempts: 9
Remove adjacent duplicates - 732 entries

Try to find a way to remove adjacent duplicate letters.

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

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 33
  • Position: #64 / 77
  • Number of attempts: 3
Find anomalies - 187 entries

There is one special character per line

  • Best score: 30
  • Best player score: 59
  • Position: #37 / 48
  • Number of attempts: 4
New teacher - 1534 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 25
  • Position: #151 / 322
  • Number of attempts: 6
months to html list items - 1161 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 34
  • Position: #263 / 314
  • Number of attempts: 1
Quicksort - 2114 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 / 473
  • Number of attempts: 1
Populate 3D bone names list - 661 entries

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

  • Best score: 21
  • Best player score: 34
  • Position: #126 / 172
  • Number of attempts: 4
Find fix point of cos - 1486 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: #263 / 435
  • Number of attempts: 4
delete swap - 1918 entries

delete all swap

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

The goal is to see the replacement commands in action.

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

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

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

Simple challenge to extract fields from a Python class

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

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 49
  • Position: #233 / 333
  • Number of attempts: 2
Rural Post - 4604 entries

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

  • Best score: 7
  • Best player score: 9
  • Position: #214 / 1126
  • Number of attempts: 11
Quote modules - 1104 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 31
  • Position: #234 / 291
  • Number of attempts: 1
Line under headers - 2095 entries

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

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

entered into 27 challenges

contributed 0 challenges