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

Reordering properties - 411 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: 38
  • Position: #13 / 107
  • Number of attempts: 6
YAML to dotenv - 522 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 28
  • Position: #75 / 125
  • Number of attempts: 3
Change class fields from camel case to snake case - 374 entries

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

  • Best score: 18
  • Best player score: 18
  • Position: #7 / 92
  • Number of attempts: 7
Change class fields from snake case to camel case - 187 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #11 / 72
  • Number of attempts: 3
Reorganize Pokémon - 465 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 19
  • Position: #29 / 127
  • Number of attempts: 4
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: #7 / 53
  • Number of attempts: 3
Change readonly files - 49 entries

Try to write a file that was marked as read-only.

  • Best score: 20
  • Best player score: 21
  • Position: #6 / 17
  • Number of attempts: 4
extract struct tag in go - 56 entries

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

  • Best score: 29
  • Best player score: 33
  • Position: #4 / 22
  • Number of attempts: 5
CaN yOuR ViM dO ThAt? #2 - 37 entries

Tsoding's famous "Can your Vim do that?" https://www.youtube.com/watch?v=F4xc4jQO7ck&t=1429s

  • Best score: 49
  • Best player score: 49
  • Position: #2 / 10
  • Number of attempts: 9
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: #7 / 59
  • Number of attempts: 6
Move list of uuids into a SQL query - 90 entries

Take the list of UUIDs and use them as a filter in the where statement of a SQL query

  • Best score: 57
  • Best player score: 61
  • Position: #4 / 39
  • 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: 30
  • Position: #6 / 70
  • Number of attempts: 14
Word completion - 198 entries

Try to complete these options within 20 keystrokes.

  • Best score: 20
  • Best player score: 20
  • Position: #8 / 56
  • Number of attempts: 12
Fix timezone format - 253 entries

Add the missing T and Z in the datetime field. There should be a T instead of the space, and a Z at the end of the datetime. `2024-08-31 18:32:00;` -> `2024-08-31T18:32:00Z;`

  • Best score: 15
  • Best player score: 15
  • Position: #14 / 85
  • Number of attempts: 7
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: #9 / 54
  • Number of attempts: 9
Remove adjacent duplicates - 531 entries

Try to find a way to remove adjacent duplicate letters.

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

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 18
  • Position: #12 / 57
  • Number of attempts: 12
Rearrange array to single level - 1396 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 14
  • Position: #8 / 229
  • Number of attempts: 21
Rearrange array to one line - 667 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 14
  • Position: #31 / 161
  • Number of attempts: 7
Copy punctuation - 521 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 19
  • Position: #14 / 133
  • Number of attempts: 9
Column wise pasting - 174 entries

Make a table from 3 columns

  • Best score: 17
  • Best player score: 17
  • Position: #8 / 39
  • Number of attempts: 10
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: 41
  • Position: #388 / 440
  • Number of attempts: 3
EDN reformat - 1158 entries

The goal is to make the code more readable and concise while maintaining its functionality.

  • Best score: 17
  • Best player score: 18
  • Position: #50 / 164
  • Number of attempts: 26
Pick and sort servers from mirror list - 431 entries

Retrieve the primary server for each country from a mirror list file and organize them alphabetically by country name. Given a mirror list file containing server information for various countries, the objective is to extract the primary server from each country and then arrange these servers in alphabetical order based on the respective country names.

  • Best score: 28
  • Best player score: 105
  • Position: #85 / 87
  • Number of attempts: 1
rasputins
Github:

entered into 24 challenges

contributed 0 challenges