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

Convert this YAML config file to a .env file.

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

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

  • Best score: 16
  • Best player score: 21
  • Position: #60 / 84
  • Number of attempts: 1
Fix the Scala Method - 172 entries

Fix the missing semicolons and the Int type, ensure the floating point division, and remove the unnecessary return.

  • Best score: 9
  • Best player score: 22
  • Position: #24 / 56
  • Number of attempts: 5
Change class fields from camel case to snake case - 377 entries

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

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

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

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

Change the format of the each line and sort alphabetically.

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

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

  • Best score: 29
  • Best player score: 42
  • Position: #15 / 22
  • Number of attempts: 3
CaN yOuR ViM dO ThAt? #1 - 146 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 / 59
  • Number of attempts: 4
Markdown Blog Editing - 316 entries

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

  • Best score: 30
  • Best player score: 43
  • Position: #34 / 72
  • Number of attempts: 4
Search different SQL column with similar where clause - 220 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 / 54
  • Number of attempts: 9
Remove adjacent duplicates - 540 entries

Try to find a way to remove adjacent duplicate letters.

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

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 33
  • Position: #48 / 57
  • Number of attempts: 3
New teacher - 1127 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 25
  • Position: #121 / 241
  • Number of attempts: 6
Quicksort - 2003 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 / 441
  • Number of attempts: 1
Populate 3D bone names list - 633 entries

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

  • Best score: 21
  • Best player score: 34
  • Position: #120 / 163
  • Number of attempts: 4
Find fix point of cos - 1408 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: #259 / 418
  • Number of attempts: 4
delete swap - 1788 entries

delete all swap

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

The goal is to see the replacement commands in action.

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

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

  • Best score: 10
  • Best player score: 10
  • Position: #234 / 512
  • Number of attempts: 7
Python dataclasses - 1192 entries

Simple challenge to extract fields from a Python class

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

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 49
  • Position: #228 / 324
  • Number of attempts: 2
Rural Post - 4532 entries

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

  • Best score: 9
  • Best player score: 9
  • Position: #213 / 1107
  • Number of attempts: 11
Line under headers - 2059 entries

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

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

entered into 24 challenges

contributed 0 challenges