Played Challenges
Convert list of enums to list of localization terms - 204 entries
While making my game Piloteer, I had a large list of TaskTypes and needed to convert them to an equivalent list of localization terms, to be used when translating the game's text into different languages.
- Best score: 75
- Best player score: 156
- Position: #60 / 65
- Number of attempts: 1
From brakets to parens - 1266 entries
This is one of the most common problem when you wrap an array for error handling. Vim is useful when you convert foo[i][j][k] into foo(i, j, k) for many times.
- Best score: 24
- Best player score: 25
- Position: #52 / 284
- Number of attempts: 49
π - 321 entries
1200 π chars
- Best score: 16
- Best player score: 16
- Position: #15 / 79
- Number of attempts: 8
Create json from a .env file - 1658 entries
A simple everyday task.
- Best score: 38
- Best player score: 39
- Position: #36 / 407
- Number of attempts: 15
Reordering properties - 1336 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: 27
- Position: #19 / 294
- Number of attempts: 60
Sort and Tag - 708 entries
The goal is to sort these lines alphabetically, assign a unique identifier to each line in the format "[01]", "[02]", etc., and then restore the original order of the lines while preserving the assigned identifiers.
- Best score: 36
- Best player score: 36
- Position: #10 / 153
- Number of attempts: 21
Changing date formats - 735 entries
Change the date format to Y/M/D.
- Best score: 7
- Best player score: 40
- Position: #18 / 207
- Number of attempts: 12
YAML to dotenv - 1600 entries
Convert this YAML config file to a .env file.
- Best score: 16
- Best player score: 16
- Position: #63 / 335
- Number of attempts: 9
Change to ascending order - 540 entries
Change each line of numbers consistently from descending to ascending order.
- Best score: 17
- Best player score: 24
- Position: #25 / 131
- Number of attempts: 7
Swap columns and transform to CSV format - 474 entries
Turn this spreadsheet output into a CSV file but first swap the columns
- Best score: 16
- Best player score: 17
- Position: #51 / 171
- Number of attempts: 2
Generate an entry for each month - 387 entries
The input file contains a URI with a month in it. Generate the URIs for all the other months up to a couple of years
- Best score: 27
- Best player score: 27
- Position: #3 / 97
- Number of attempts: 15
Fix the git merge conflicts - 346 entries
Solve the merge conflicts in the Python file
- Best score: 36
- Best player score: 50
- Position: #29 / 104
- Number of attempts: 2
Nested JSON Flattener - 133 entries
Transform a deeply nested JSON structure into a flattened key-value format where each path is represented by dot notation
- Best score: 44
- Best player score: 56
- Position: #10 / 31
- Number of attempts: 12
The Fibonacci Spacer - 169 entries
Split the words, remove punctuation and add spaces before each line following the Fibonacci sequence (0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89)
- Best score: 14
- Best player score: 14
- Position: #1 / 51
- Number of attempts: 4
Replace markdown sections with numbering - 321 entries
Replace each section and subsection with their respective numbers
- Best score: 29
- Best player score: 59
- Position: #41 / 89
- Number of attempts: 4
Fix the Scala Method - 368 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: #35 / 121
- Number of attempts: 4
Change class fields from camel case to snake case - 662 entries
This is the reverse of the previous challenge: https://www.vimgolf.com/challenges/9v006705493c000000000513
- Best score: 18
- Best player score: 18
- Position: #32 / 152
- Number of attempts: 12
Change class fields from snake case to camel case - 318 entries
Change the class fields in this Scala class from snake case to camel case
- Best score: 13
- Best player score: 13
- Position: #52 / 120
- Number of attempts: 1
Reorganize Pokémon - 871 entries
Change the format of the each line and sort alphabetically.
- Best score: 18
- Best player score: 18
- Position: #32 / 239
- Number of attempts: 4
Replace csv column if it's not empty - 294 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: #27 / 98
- Number of attempts: 5
Convert plain text into a markdown table - 102 entries
Convert the table to markdown to make it more usable
- Best score: 56
- Best player score: 121
- Position: #22 / 33
- Number of attempts: 2
Change readonly files - 117 entries
Try to write a file that was marked as read-only.
- Best score: 20
- Best player score: 53
- Position: #24 / 35
- Number of attempts: 1
extract struct tag in go - 157 entries
Can you extract all struct tags in the fewest keystrokes possible?
- Best score: 29
- Best player score: 41
- Position: #22 / 48
- Number of attempts: 6
CaN yOuR ViM dO ThAt? #2 - 106 entries
Tsoding's famous "Can your Vim do that?" https://www.youtube.com/watch?v=F4xc4jQO7ck&t=1429s
- Best score: 49
- Best player score: 70
- Position: #15 / 28
- Number of attempts: 3
CaN yOuR ViM dO ThAt? #1 - 294 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: #18 / 116
- Number of attempts: 5
Append leading hyphen count to each line - 141 entries
Append the number of leading hyphens to the end of each line.
- Best score: 23
- Best player score: 24
- Position: #12 / 40
- Number of attempts: 4
Move list of uuids into a SQL query - 245 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: 66
- Position: #34 / 82
- Number of attempts: 1
Markdown Blog Editing - 478 entries
Convert the given link text in start file to a markdown link list.
- Best score: 30
- Best player score: 31
- Position: #17 / 115
- Number of attempts: 13
Fix timezone format - 351 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: #20 / 118
- Number of attempts: 6
Search different SQL column with similar where clause - 360 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: #16 / 85
- Number of attempts: 7
Remove adjacent duplicates - 718 entries
Try to find a way to remove adjacent duplicate letters.
- Best score: 19
- Best player score: 19
- Position: #15 / 179
- Number of attempts: 10
Rearrange array to single level - 1814 entries
The goal is to flatten the array into a single list and remove any empty elements.
- Best score: 14
- Best player score: 15
- Position: #28 / 306
- Number of attempts: 11
Rearrange array to one line - 888 entries
Rearrange the array content on only one line, and remove trailing commas
- Best score: 13
- Best player score: 13
- Position: #24 / 204
- Number of attempts: 9
Copy punctuation - 734 entries
I want to copy the last line’s brackets, quotes, and commas to each line. How?
- Best score: 19
- Best player score: 22
- Position: #30 / 178
- Number of attempts: 16
Column wise pasting - 262 entries
Make a table from 3 columns
- Best score: 17
- Best player score: 17
- Position: #10 / 56
- Number of attempts: 10
Deleting text - 343 entries
Delete everything except some specific numbers.
- Best score: 10
- Best player score: 41
- Position: #16 / 110
- Number of attempts: 4
Hex to binary - 129 entries
Convert hexadecimal numbers into binary format.
- Best score: 29
- Best player score: 40
- Position: #16 / 25
- Number of attempts: 4
Format a long line - 129 entries
Reformat long lines (gq), textwidth=78, no trailing spaces.
- Best score: 17
- Best player score: 72
- Position: #31 / 37
- Number of attempts: 1
Quicksort - 2111 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: 24
- Position: #284 / 472
- Number of attempts: 2
Pick and sort servers from mirror list - 463 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: 30
- Position: #37 / 92
- Number of attempts: 9
Find fix point of cos - 1485 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: 16
- Position: #297 / 434
- Number of attempts: 1
Easier Align - 443 entries
Align the columns of a markdown table
- Best score: 51
- Best player score: 73
- Position: #24 / 100
- Number of attempts: 13
Paste a column after a column - 2668 entries
This task is very common while using multi-cursor. What is the elegant vim way ?
- Best score: 14
- Best player score: 14
- Position: #112 / 578
- Number of attempts: 6
Generate a very basic Python constructor (fixed) - 1295 entries
Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.
- Best score: 29
- Best player score: 29
- Position: #67 / 278
- Number of attempts: 10
Fix the shell script! - 2681 entries
Fix the shell script with the fewest keystrokes!
- Best score: 26
- Best player score: 32
- Position: #301 / 624
- Number of attempts: 1
Java to JavaScript - 302 entries
Let convert some simple Java file to JavaScript!
- Best score: 59
- Best player score: 59
- Position: #14 / 78
- Number of attempts: 8
CSV to MD format - 450 entries
To convert a CSV list to Markdown list
- Best score: 36
- Best player score: 36
- Position: #16 / 99
- Number of attempts: 9
Modernise code - 1437 entries
Modernise and clean up some C++ code.
- Best score: 34
- Best player score: 34
- Position: #76 / 332
- Number of attempts: 8
swap number pairs - 2173 entries
Swap the numbers in a bunch of 2-element arrays.
- Best score: 16
- Best player score: 16
- Position: #60 / 394
- Number of attempts: 12
VimGolf