Played Challenges
From brakets to parens - 611 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: #88 / 139
- Number of attempts: 3
Create json from a .env file - 1303 entries
A simple everyday task.
- Best score: 39
- Best player score: 104
- Position: #269 / 303
- Number of attempts: 1
Reordering properties - 1042 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: #85 / 240
- Number of attempts: 2
Sort and Tag - 613 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: #47 / 125
- Number of attempts: 6
Changing date formats - 615 entries
Change the date format to Y/M/D.
- Best score: 37
- Best player score: 67
- Position: #66 / 170
- Number of attempts: 5
YAML to dotenv - 1226 entries
Convert this YAML config file to a .env file.
- Best score: 16
- Best player score: 21
- Position: #97 / 262
- Number of attempts: 10
Swap columns and transform to CSV format - 386 entries
Turn this spreadsheet output into a CSV file but first swap the columns
- Best score: 16
- Best player score: 25
- Position: #121 / 143
- Number of attempts: 2
Generate an entry for each month - 351 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: #50 / 84
- Number of attempts: 2
Fix the git merge conflicts - 286 entries
Solve the merge conflicts in the Python file
- Best score: 36
- Best player score: 43
- Position: #16 / 78
- Number of attempts: 13
Nested JSON Flattener - 101 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: #26 / 27
- Number of attempts: 3
Replace markdown sections with numbering - 284 entries
Replace each section and subsection with their respective numbers
- Best score: 29
- Best player score: 53
- Position: #26 / 72
- Number of attempts: 6
Fix the Scala Method - 286 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: #83 / 89
- Number of attempts: 2
Change class fields from camel case to snake case - 526 entries
This is the reverse of the previous challenge: https://www.vimgolf.com/challenges/9v006705493c000000000513
- Best score: 18
- Best player score: 23
- Position: #73 / 120
- Number of attempts: 5
Change class fields from snake case to camel case - 276 entries
Change the class fields in this Scala class from snake case to camel case
- Best score: 13
- Best player score: 13
- Position: #61 / 103
- Number of attempts: 4
Reorganize Pokémon - 691 entries
Change the format of the each line and sort alphabetically.
- Best score: 18
- Best player score: 21
- Position: #112 / 190
- Number of attempts: 5
Replace csv column if it's not empty - 248 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 / 83
- Number of attempts: 4
Convert plain text into a markdown table - 69 entries
Convert the table to markdown to make it more usable
- Best score: 56
- Best player score: 99
- Position: #15 / 25
- Number of attempts: 7
extract struct tag in go - 142 entries
Can you extract all struct tags in the fewest keystrokes possible?
- Best score: 29
- Best player score: 39
- Position: #17 / 36
- Number of attempts: 6
CaN yOuR ViM dO ThAt? #1 - 236 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: #47 / 91
- Number of attempts: 2
Move list of uuids into a SQL query - 196 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: #43 / 66
- Number of attempts: 4
Markdown Blog Editing - 434 entries
Convert the given link text in start file to a markdown link list.
- Best score: 30
- Best player score: 44
- Position: #46 / 101
- Number of attempts: 6
Fix timezone format - 318 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: #87 / 101
- Number of attempts: 1
Search different SQL column with similar where clause - 304 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: #37 / 68
- Number of attempts: 4
Rearrange array to single level - 1631 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: #122 / 271
- Number of attempts: 10
Rearrange array to one line - 758 entries
Rearrange the array content on only one line, and remove trailing commas
- Best score: 13
- Best player score: 22
- Position: #120 / 182
- Number of attempts: 2
Copy punctuation - 655 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: #38 / 158
- Number of attempts: 18
New teacher - 1419 entries
Update the details of the new CS teacher.
- Best score: 19
- Best player score: 22
- Position: #77 / 299
- Number of attempts: 8
months to html list items - 1108 entries
Turn the months into list items.
- Best score: 22
- Best player score: 25
- Position: #136 / 300
- Number of attempts: 9
Quicksort - 2058 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: #298 / 457
- Number of attempts: 4
EDN reformat - 1193 entries
The goal is to make the code more readable and concise while maintaining its functionality.
- Best score: 17
- Best player score: 18
- Position: #80 / 169
- Number of attempts: 4
Pick and sort servers from mirror list - 451 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: #76 / 90
- Number of attempts: 1
Paste a column after a column - 2632 entries
This task is very common while using multi-cursor. What is the elegant vim way ?
- Best score: 14
- Best player score: 16
- Position: #197 / 570
- Number of attempts: 7
Generate a very basic Python constructor - 323 entries
I actually needed to do this myself, so I look forward to learning how.
- Best score: 38
- Best player score: 65
- Position: #73 / 100
- Number of attempts: 1
RUST Cargo.toml version to last - 378 entries
RUST Cargo.toml version to last. rusty practice on vimgolf
- Best score: 16
- Best player score: 18
- Position: #66 / 104
- Number of attempts: 3
Hogwarts Email Sorting - 944 entries
Given a list of emails, get the students full name and their associated house.
- Best score: 20
- Best player score: 21
- Position: #108 / 267
- Number of attempts: 6
Swap values inside brackets - 2523 entries
Easy challenge.
- Best score: 13
- Best player score: 18
- Position: #360 / 587
- Number of attempts: 1
Applying same text modification in several lines - 2915 entries
Remove identical text at the beginning of several lines and the closing parenthesis.
- Best score: 12
- Best player score: 15
- Position: #554 / 863
- Number of attempts: 1
Refactor typescript arrow function type - 339 entries
Make arrow function type less verbose and easier to read
- Best score: 20
- Best player score: 23
- Position: #44 / 73
- Number of attempts: 9
Add string initializers to an enum - 892 entries
Change Typescript enum so that it has string initializers.
- Best score: 21
- Best player score: 22
- Position: #106 / 263
- Number of attempts: 7
SCREAMING_SNAKE_CASE to Title Case - 1253 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: #133 / 261
- Number of attempts: 8
Swap the operands under comparison - 313 entries
Swap the operands under comparison to prevent null pointer exception (at least in java)
- Best score: 19
- Best player score: 27
- Position: #88 / 105
- Number of attempts: 2
Add semicolons - 10916 entries
Simply add a semicolon at the end of each line
- Best score: 10
- Best player score: 12
- Position: #1969 / 3085
- Number of attempts: 2
Bad Copy Syntax - 2055 entries
Copy should be from right to left, but sometimes you type it wrong.
- Best score: 18
- Best player score: 23
- Position: #363 / 536
- Number of attempts: 1
Split line with dots - 2156 entries
This line is too long, split it.
- Best score: 15
- Best player score: 23
- Position: #498 / 636
- Number of attempts: 2
remove lines containing the word "reader" - 3622 entries
easy stuff
- Best score: 9
- Best player score: 14
- Position: #1083 / 1177
- Number of attempts: 1
Com(m)a Trouble - 3941 entries
Someone was real stupid when placing his commas. Can you fix it?
- Best score: 12
- Best player score: 17
- Position: #603 / 892
- Number of attempts: 5
Tables, Functions, Sprocs - 143 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: #46 / 50
- Number of attempts: 2
html paragraph to table - 612 entries
reformat html paragraph to table
- Best score: 48
- Best player score: 58
- Position: #69 / 128
- Number of attempts: 4
From argument to object - 1536 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: #314 / 466
- Number of attempts: 2
Copy three lines - 2882 entries
If the site is up (by some miracle), make the text under every header identical.
- Best score: 13
- Best player score: 19
- Position: #393 / 642
- Number of attempts: 7
Preferably without multi-cursor plugin - 549 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: #108 / 132
- Number of attempts: 2
Just the middle - 11541 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 8
- Position: #3231 / 4230
- Number of attempts: 1
Extract HTML option values from tag values - 116 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: #45 / 46
- Number of attempts: 1
Basic renumbering - 5699 entries
Renumbering Basic.
- Best score: 11
- Best player score: 12
- Position: #309 / 1273
- Number of attempts: 2
create arrows in a list - 130 entries
Add arrow at same distance
- Best score: 10
- Best player score: 21
- Position: #75 / 78
- Number of attempts: 2
Adam's challenge - 1009 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: #203 / 276
- Number of attempts: 1
ninja substitution - 1427 entries
How can you reuse a previous substitution ?
- Best score: 14
- Best player score: 31
- Position: #246 / 269
- Number of attempts: 3
Order and join - 992 entries
There's something special about the input order.
- Best score: 10
- Best player score: 13
- Position: #193 / 261
- Number of attempts: 7
Scrambled numbers - 814 entries
Four is NOT 1. One is 1.
- Best score: 18
- Best player score: 30
- Position: #144 / 185
- Number of attempts: 7
Hello ${world} - 334 entries
Migrate a JavaScript String from concatenation to ES6 interpolation.
- Best score: 24
- Best player score: 26
- Position: #54 / 99
- Number of attempts: 7
Remove quotes after first field - 386 entries
Remove the quotes around each field except for the first field.
- Best score: 16
- Best player score: 25
- Position: #73 / 93
- Number of attempts: 3
Reorder the groups - 1185 entries
Change the order so that the groups of fruit come before the vegetables.
- Best score: 14
- Best player score: 18
- Position: #155 / 266
- Number of attempts: 3
Add Go XML to structure tags - 184 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: #58 / 74
- Number of attempts: 2
move titles next to url, in quotes - 551 entries
had trouble with something similar
- Best score: 19
- Best player score: 25
- Position: #127 / 146
- Number of attempts: 2
Array transposition - 2436 entries
Transpose two arrays into one.
- Best score: 16
- Best player score: 27
- Position: #331 / 452
- Number of attempts: 6
convert yml into java pojo field - 867 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: #170 / 230
- Number of attempts: 1
Refactoring useless Method away - 124 entries
Real-life challenge, convert a bunch of ifs to a switch statement
- Best score: 47
- Best player score: 56
- Position: #17 / 36
- Number of attempts: 7
Condensed Cases - 807 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: #224 / 248
- Number of attempts: 3
Pretty format for variable declarations - 174 entries
Project standards demand the equal signs must be aligned for better readability.
- Best score: 13
- Best player score: 17
- Position: #43 / 65
- Number of attempts: 4
I forgot quotes - 16093 entries
Oops.
- Best score: 10
- Best player score: 15
- Position: #2401 / 4202
- Number of attempts: 1
Replace Parameter with Explicit Methods - 78 entries
Implementing the methods of a Java Interface
- Best score: 33
- Best player score: 46
- Position: #20 / 28
- Number of attempts: 2
-a-b-c- - 3225 entries
Put hyphens everywhere.
- Best score: 13
- Best player score: 16
- Position: #879 / 1140
- Number of attempts: 4
Gray area - 749 entries
It's a golf metaphor or something.
- Best score: 11
- Best player score: 15
- Position: #252 / 272
- Number of attempts: 2
Don't know what this is - 2025 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: #382 / 587
- Number of attempts: 1
VimGolf