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

Convert this YAML config file to a .env file.

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

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

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

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

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

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

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

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 18
  • Position: #23 / 124
  • Number of attempts: 8
Replace csv column if it's not empty - 138 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 / 51
  • 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 - 141 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 / 57
  • Number of attempts: 4
Markdown Blog Editing - 298 entries

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

  • Best score: 30
  • Best player score: 43
  • Position: #33 / 70
  • 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 - 520 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 19
  • Position: #13 / 135
  • 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
Quicksort - 2002 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 / 440
  • 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
Python dataclasses - 1187 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 19
  • Position: #81 / 294
  • Number of attempts: 13
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 19 challenges

contributed 0 challenges