Played Challenges
From brakets to parens - 1302 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: 39
- Position: #169 / 294
- Number of attempts: 3
Create json from a .env file - 1711 entries
A simple everyday task.
- Best score: 38
- Best player score: 104
- Position: #368 / 414
- Number of attempts: 1
Reordering properties - 1372 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: 60
- Position: #111 / 298
- Number of attempts: 2
Sort and Tag - 737 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: 64
- Position: #55 / 156
- Number of attempts: 6
Changing date formats - 751 entries
Change the date format to Y/M/D.
- Best score: 36
- Best player score: 67
- Position: #77 / 211
- Number of attempts: 5
YAML to dotenv - 1637 entries
Convert this YAML config file to a .env file.
- Best score: 16
- Best player score: 21
- Position: #124 / 342
- Number of attempts: 10
Swap columns and transform to CSV format - 491 entries
Turn this spreadsheet output into a CSV file but first swap the columns
- Best score: 16
- Best player score: 25
- Position: #147 / 176
- Number of attempts: 2
Generate an entry for each month - 395 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: 48
- Position: #57 / 100
- Number of attempts: 2
Fix the git merge conflicts - 351 entries
Solve the merge conflicts in the Python file
- Best score: 36
- Best player score: 43
- Position: #17 / 106
- Number of attempts: 13
Nested JSON Flattener - 137 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: 337
- Position: #32 / 32
- Number of attempts: 3
Replace markdown sections with numbering - 323 entries
Replace each section and subsection with their respective numbers
- Best score: 29
- Best player score: 53
- Position: #29 / 90
- Number of attempts: 6
Fix the Scala Method - 375 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: 33
- Position: #114 / 124
- Number of attempts: 2
Change class fields from camel case to snake case - 669 entries
This is the reverse of the previous challenge: https://www.vimgolf.com/challenges/9v006705493c000000000513
- Best score: 18
- Best player score: 23
- Position: #87 / 154
- Number of attempts: 5
Change class fields from snake case to camel case - 325 entries
Change the class fields in this Scala class from snake case to camel case
- Best score: 13
- Best player score: 13
- Position: #61 / 122
- Number of attempts: 4
Reorganize Pokémon - 876 entries
Change the format of the each line and sort alphabetically.
- Best score: 18
- Best player score: 21
- Position: #126 / 240
- Number of attempts: 5
Replace csv column if it's not empty - 310 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: #35 / 100
- Number of attempts: 4
Convert plain text into a markdown table - 104 entries
Convert the table to markdown to make it more usable
- Best score: 56
- Best player score: 99
- Position: #18 / 34
- Number of attempts: 7
extract struct tag in go - 164 entries
Can you extract all struct tags in the fewest keystrokes possible?
- Best score: 29
- Best player score: 39
- Position: #17 / 49
- Number of attempts: 6
CaN yOuR ViM dO ThAt? #1 - 297 entries
Tsoding's famous "Can your Vim do that?" https://youtu.be/Bafo3hhheHU?si=DfcT4sUEMTSAevnx&t=1091
- Best score: 41
- Best player score: 45
- Position: #52 / 118
- Number of attempts: 2
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: 68
- Position: #47 / 82
- Number of attempts: 4
Markdown Blog Editing - 485 entries
Convert the given link text in start file to a markdown link list.
- Best score: 30
- Best player score: 44
- Position: #49 / 117
- Number of attempts: 6
Fix timezone format - 372 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: 21
- Position: #100 / 120
- Number of attempts: 1
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: 25
- Position: #41 / 87
- Number of attempts: 4
Rearrange array to single level - 1829 entries
The goal is to flatten the array into a single list and remove any empty elements.
- Best score: 14
- Best player score: 24
- Position: #134 / 307
- Number of attempts: 10
Rearrange array to one line - 889 entries
Rearrange the array content on only one line, and remove trailing commas
- Best score: 13
- Best player score: 22
- Position: #137 / 205
- Number of attempts: 2
Copy punctuation - 743 entries
I want to copy the last line’s brackets, quotes, and commas to each line. How?
- Best score: 19
- Best player score: 29
- Position: #42 / 182
- Number of attempts: 18
New teacher - 1527 entries
Update the details of the new CS teacher.
- Best score: 19
- Best player score: 22
- Position: #83 / 319
- Number of attempts: 8
months to html list items - 1151 entries
Turn the months into list items.
- Best score: 22
- Best player score: 25
- Position: #139 / 311
- Number of attempts: 9
Quicksort - 2113 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: 25
- Position: #304 / 472
- Number of attempts: 4
EDN reformat - 1222 entries
The goal is to make the code more readable and concise while maintaining its functionality.
- Best score: 17
- Best player score: 18
- Position: #81 / 173
- Number of attempts: 4
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: 55
- Position: #78 / 92
- Number of attempts: 1
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: 16
- Position: #200 / 578
- Number of attempts: 7
Generate a very basic Python constructor - 337 entries
I actually needed to do this myself, so I look forward to learning how.
- Best score: 38
- Best player score: 65
- Position: #75 / 102
- Number of attempts: 1
RUST Cargo.toml version to last - 399 entries
RUST Cargo.toml version to last. rusty practice on vimgolf
- Best score: 16
- Best player score: 18
- Position: #68 / 106
- Number of attempts: 3
Hogwarts Email Sorting - 954 entries
Given a list of emails, get the students full name and their associated house.
- Best score: 20
- Best player score: 21
- Position: #109 / 272
- Number of attempts: 6
Swap values inside brackets - 2551 entries
Easy challenge.
- Best score: 13
- Best player score: 18
- Position: #364 / 594
- Number of attempts: 1
Applying same text modification in several lines - 2931 entries
Remove identical text at the beginning of several lines and the closing parenthesis.
- Best score: 12
- Best player score: 15
- Position: #558 / 867
- Number of attempts: 1
Refactor typescript arrow function type - 365 entries
Make arrow function type less verbose and easier to read
- Best score: 20
- Best player score: 23
- Position: #46 / 76
- Number of attempts: 9
Add string initializers to an enum - 903 entries
Change Typescript enum so that it has string initializers.
- Best score: 21
- Best player score: 22
- Position: #107 / 266
- Number of attempts: 7
SCREAMING_SNAKE_CASE to Title Case - 1273 entries
Convert strings in SCREAMING_SNAKE_CASE to Title Case. Examples: EMPLOYEE_NAME -> Employee Name REVENUE_YEAR_TO_DATE -> Revenue Year To Date SALARY -> Salary
- Best score: 19
- Best player score: 22
- Position: #136 / 266
- Number of attempts: 8
Swap the operands under comparison - 325 entries
Swap the operands under comparison to prevent null pointer exception (at least in java)
- Best score: 19
- Best player score: 27
- Position: #90 / 108
- Number of attempts: 2
Add semicolons - 10956 entries
Simply add a semicolon at the end of each line
- Best score: 10
- Best player score: 12
- Position: #1980 / 3098
- Number of attempts: 2
Bad Copy Syntax - 2088 entries
Copy should be from right to left, but sometimes you type it wrong.
- Best score: 18
- Best player score: 23
- Position: #368 / 543
- Number of attempts: 1
Split line with dots - 2175 entries
This line is too long, split it.
- Best score: 15
- Best player score: 23
- Position: #501 / 639
- Number of attempts: 2
remove lines containing the word "reader" - 3652 entries
easy stuff
- Best score: 9
- Best player score: 14
- Position: #1090 / 1185
- Number of attempts: 1
Com(m)a Trouble - 3993 entries
Someone was real stupid when placing his commas. Can you fix it?
- Best score: 12
- Best player score: 17
- Position: #613 / 910
- Number of attempts: 5
Tables, Functions, Sprocs - 152 entries
In order to load some scripts into my database in the correct order I need to load tables first (t_), then functions (fn_), then stored procedures (sp_). The order of the t_ lines and the order of the sp_ lines should also match. Reorder the lines so they will load correctly.
- Best score: 10
- Best player score: 12
- Position: #49 / 53
- Number of attempts: 2
html paragraph to table - 635 entries
reformat html paragraph to table
- Best score: 48
- Best player score: 58
- Position: #70 / 131
- Number of attempts: 4
From argument to object - 1566 entries
This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?
- Best score: 17
- Best player score: 19
- Position: #317 / 471
- Number of attempts: 2
Copy three lines - 2924 entries
If the site is up (by some miracle), make the text under every header identical.
- Best score: 13
- Best player score: 19
- Position: #397 / 647
- Number of attempts: 7
Preferably without multi-cursor plugin - 584 entries
Originally asked as question on reddit by kpthunder: https://www.reddit.com/r/vim/comments/9fvsro/what_is_the_most_efficient_way_to_go_about/
- Best score: 30
- Best player score: 40
- Position: #111 / 135
- Number of attempts: 2
Just the middle - 11620 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 8
- Position: #3237 / 4258
- Number of attempts: 1
Extract HTML option values from tag values - 140 entries
Generate HTML option values from the text in the option tag. If the text contains multiple words, replace the spaces with an underscore and convert all capital letters to small letters.
- Best score: 34
- Best player score: 46
- Position: #48 / 49
- Number of attempts: 1
Basic renumbering - 5737 entries
Renumbering Basic.
- Best score: 11
- Best player score: 12
- Position: #314 / 1281
- Number of attempts: 2
create arrows in a list - 146 entries
Add arrow at same distance
- Best score: 10
- Best player score: 21
- Position: #78 / 81
- Number of attempts: 2
Adam's challenge - 1043 entries
Change both normal to bold and 4 by 2. Adam Wathan challenge this on twitter . He did it in 11 keystrokes on Sublime.
- Best score: 18
- Best player score: 22
- Position: #207 / 281
- Number of attempts: 1
ninja substitution - 1439 entries
How can you reuse a previous substitution ?
- Best score: 14
- Best player score: 31
- Position: #248 / 271
- Number of attempts: 3
Order and join - 1032 entries
There's something special about the input order.
- Best score: 10
- Best player score: 13
- Position: #197 / 265
- Number of attempts: 7
Scrambled numbers - 830 entries
Four is NOT 1. One is 1.
- Best score: 18
- Best player score: 30
- Position: #146 / 187
- Number of attempts: 7
Hello ${world} - 350 entries
Migrate a JavaScript String from concatenation to ES6 interpolation.
- Best score: 24
- Best player score: 26
- Position: #55 / 104
- Number of attempts: 7
Remove quotes after first field - 411 entries
Remove the quotes around each field except for the first field.
- Best score: 16
- Best player score: 25
- Position: #75 / 96
- Number of attempts: 3
Reorder the groups - 1201 entries
Change the order so that the groups of fruit come before the vegetables.
- Best score: 14
- Best player score: 18
- Position: #158 / 270
- Number of attempts: 3
Add Go XML to structure tags - 211 entries
The Go programming language can directly map XML to structure fields. Add the correct XML tag after each field.
- Best score: 23
- Best player score: 31
- Position: #61 / 77
- Number of attempts: 2
move titles next to url, in quotes - 565 entries
had trouble with something similar
- Best score: 19
- Best player score: 25
- Position: #129 / 149
- Number of attempts: 2
Array transposition - 2481 entries
Transpose two arrays into one.
- Best score: 16
- Best player score: 27
- Position: #335 / 461
- Number of attempts: 6
convert yml into java pojo field - 879 entries
How fast vim can create fields for java pojo i.e class declaration referring to a (simple) yml file
- Best score: 29
- Best player score: 33
- Position: #172 / 233
- Number of attempts: 1
Refactoring useless Method away - 135 entries
Real-life challenge, convert a bunch of ifs to a switch statement
- Best score: 47
- Best player score: 56
- Position: #18 / 38
- Number of attempts: 7
Condensed Cases - 829 entries
Apple's new programming language, Swift, allows two style of case statements: 1) one Enum case on each line, or 2) multiple Enum cases on a single line. Convert the following from the first case (no pun intended) to the second type.
- Best score: 12
- Best player score: 20
- Position: #229 / 255
- Number of attempts: 3
Pretty format for variable declarations - 188 entries
Project standards demand the equal signs must be aligned for better readability.
- Best score: 13
- Best player score: 17
- Position: #47 / 70
- Number of attempts: 4
I forgot quotes - 16239 entries
Oops.
- Best score: 10
- Best player score: 15
- Position: #2415 / 4225
- Number of attempts: 1
Replace Parameter with Explicit Methods - 102 entries
Implementing the methods of a Java Interface
- Best score: 33
- Best player score: 46
- Position: #21 / 30
- Number of attempts: 2
-a-b-c- - 3242 entries
Put hyphens everywhere.
- Best score: 13
- Best player score: 16
- Position: #885 / 1147
- Number of attempts: 4
Gray area - 765 entries
It's a golf metaphor or something.
- Best score: 11
- Best player score: 15
- Position: #256 / 277
- Number of attempts: 2
Don't know what this is - 2068 entries
Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.
- Best score: 11
- Best player score: 14
- Position: #388 / 595
- Number of attempts: 1
VimGolf