Played Challenges
Filling braces - 481 entries
Inspired by a question on CoDidact (https://software.codidact.com/posts/296501), I wondered if Vim could offer a satisfactory ‘solution’ to this problem.
- Best score: 21
- Best player score: 24
- Position: #14 / 157
- Number of attempts: 1
Even and Odd - 393 entries
separate the even numbers from the odd numbers
- Best score: 13
- Best player score: 13
- Position: #6 / 101
- Number of attempts: 18
Modifying .XCompose - 104 entries
You just wrote some lines in .XCompose, but now you want the compose sequences to be more verbose. Change the compose sequence for each Greek letter to its name.
- Best score: 33
- Best player score: 33
- Position: #9 / 28
- Number of attempts: 4
hexagram binary tree - 128 entries
generate the binary tree that represents all possible hexagrams found in the book of changes (易经)
- Best score: 23
- Best player score: 23
- Position: #2 / 30
- Number of attempts: 14
Swap function parameters and delete all comments in python. - 1073 entries
Swap function parameters and delete all comments in python.
- Best score: 19
- Best player score: 19
- Position: #56 / 262
- Number of attempts: 15
Flip All Bits - 503 entries
Perform a bitwise NOT operation on each bit, meaning that bits that are 0 become 1, and those that are 1 become 0.
- Best score: 24
- Best player score: 24
- Position: #2 / 144
- Number of attempts: 25
Find the devices that have no revoked time, and extract out the duration left on their leases. - 255 entries
Extract non-revoked devices and the duration of their leases.
- Best score: 49
- Best player score: 49
- Position: #1 / 60
- Number of attempts: 6
Convert list of enums to list of localization terms - 262 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: 84
- Position: #2 / 74
- Number of attempts: 5
From brakets to parens - 1350 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 / 308
- Number of attempts: 49
π - 344 entries
1200 π chars
- Best score: 16
- Best player score: 16
- Position: #15 / 84
- Number of attempts: 8
Create json from a .env file - 1773 entries
A simple everyday task.
- Best score: 38
- Best player score: 39
- Position: #36 / 431
- Number of attempts: 15
Reordering properties - 1385 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: #21 / 302
- Number of attempts: 60
Sort and Tag - 738 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 / 157
- Number of attempts: 21
Changing date formats - 774 entries
Change the date format to Y/M/D.
- Best score: 36
- Best player score: 40
- Position: #19 / 213
- Number of attempts: 12
YAML to dotenv - 1654 entries
Convert this YAML config file to a .env file.
- Best score: 16
- Best player score: 16
- Position: #63 / 347
- Number of attempts: 9
Change to ascending order - 566 entries
Change each line of numbers consistently from descending to ascending order.
- Best score: 17
- Best player score: 17
- Position: #18 / 138
- Number of attempts: 8
Swap columns and transform to CSV format - 516 entries
Turn this spreadsheet output into a CSV file but first swap the columns
- Best score: 16
- Best player score: 17
- Position: #52 / 184
- Number of attempts: 2
Generate an entry for each month - 398 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 / 102
- Number of attempts: 15
Fix the git merge conflicts - 394 entries
Solve the merge conflicts in the Python file
- Best score: 36
- Best player score: 38
- Position: #12 / 111
- 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: 56
- Position: #10 / 32
- Number of attempts: 12
The Fibonacci Spacer - 175 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 / 54
- Number of attempts: 4
Replace markdown sections with numbering - 348 entries
Replace each section and subsection with their respective numbers
- Best score: 29
- Best player score: 29
- Position: #4 / 93
- Number of attempts: 18
Fix the Scala Method - 379 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 / 126
- Number of attempts: 4
Change class fields from camel case to snake case - 678 entries
This is the reverse of the previous challenge: https://www.vimgolf.com/challenges/9v006705493c000000000513
- Best score: 18
- Best player score: 18
- Position: #32 / 160
- Number of attempts: 12
Change class fields from snake case to camel case - 336 entries
Change the class fields in this Scala class from snake case to camel case
- Best score: 13
- Best player score: 13
- Position: #52 / 127
- Number of attempts: 1
Reorganize Pokémon - 902 entries
Change the format of the each line and sort alphabetically.
- Best score: 18
- Best player score: 18
- Position: #32 / 251
- Number of attempts: 4
Replace csv column if it's not empty - 317 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 / 103
- Number of attempts: 5
Convert plain text into a markdown table - 117 entries
Convert the table to markdown to make it more usable
- Best score: 56
- Best player score: 56
- Position: #6 / 35
- Number of attempts: 14
Change readonly files - 141 entries
Try to write a file that was marked as read-only.
- Best score: 16
- Best player score: 20
- Position: #14 / 39
- Number of attempts: 10
extract struct tag in go - 174 entries
Can you extract all struct tags in the fewest keystrokes possible?
- Best score: 29
- Best player score: 29
- Position: #4 / 51
- Number of attempts: 12
CaN yOuR ViM dO ThAt? #2 - 117 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: #18 / 31
- Number of attempts: 3
CaN yOuR ViM dO ThAt? #1 - 309 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 / 123
- Number of attempts: 5
Append leading hyphen count to each line - 157 entries
Append the number of leading hyphens to the end of each line.
- Best score: 23
- Best player score: 23
- Position: #10 / 43
- Number of attempts: 5
Move list of uuids into a SQL query - 254 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: 57
- Position: #7 / 83
- Number of attempts: 8
Markdown Blog Editing - 488 entries
Convert the given link text in start file to a markdown link list.
- Best score: 30
- Best player score: 31
- Position: #18 / 119
- Number of attempts: 13
Word completion - 329 entries
Try to complete these options within 20 keystrokes.
- Best score: 20
- Best player score: 22
- Position: #30 / 87
- Number of attempts: 16
Fix timezone format - 385 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 / 126
- Number of attempts: 6
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: 22
- Position: #16 / 87
- Number of attempts: 7
Remove adjacent duplicates - 732 entries
Try to find a way to remove adjacent duplicate letters.
- Best score: 19
- Best player score: 19
- Position: #15 / 187
- Number of attempts: 10
Rearrange array to single level - 1832 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: #22 / 308
- Number of attempts: 13
Rearrange array to one line - 907 entries
Rearrange the array content on only one line, and remove trailing commas
- Best score: 13
- Best player score: 13
- Position: #24 / 209
- Number of attempts: 9
Copy punctuation - 760 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: #23 / 188
- Number of attempts: 18
Change LaTex itemizations formats - 148 entries
Inspired by the way my professor formats their LaTeX assignments.
- Best score: 43
- Best player score: 43
- Position: #7 / 27
- Number of attempts: 9
Column wise pasting - 282 entries
Make a table from 3 columns
- Best score: 17
- Best player score: 17
- Position: #10 / 63
- Number of attempts: 10
Deleting text - 360 entries
Delete everything except some specific numbers.
- Best score: 26
- Best player score: 30
- Position: #11 / 117
- Number of attempts: 9
Define Gray code states - 67 entries
List the states using Gray code and assign Gray code values to each state.
- Best score: 54
- Best player score: 54
- Position: #2 / 18
- Number of attempts: 6
Hex to binary - 141 entries
Convert hexadecimal numbers into binary format.
- Best score: 29
- Best player score: 29
- Position: #2 / 27
- Number of attempts: 11
Count words - 140 entries
Merge duplicates and count each word.
- Best score: 39
- Best player score: 39
- Position: #6 / 29
- Number of attempts: 11
Format a long line - 134 entries
Reformat long lines (gq), textwidth=78, no trailing spaces.
- Best score: 17
- Best player score: 17
- Position: #7 / 37
- Number of attempts: 6
Evil Numbers - 123 entries
Print the first 100 evil numbers https://oeis.org/A001969. This is an advert for code.golf https://code.golf/evil-numbers#viml
- Best score: 25
- Best player score: 25
- Position: #11 / 29
- Number of attempts: 6
Mirror image - 144 entries
Add the second eye
- Best score: 15
- Best player score: 15
- Position: #8 / 39
- Number of attempts: 12
Find anomalies - 187 entries
There is one special character per line
- Best score: 30
- Best player score: 30
- Position: #14 / 48
- Number of attempts: 15
Morse - 204 entries
Translate Morse code to Text
- Best score: 31
- Best player score: 35
- Position: #14 / 38
- Number of attempts: 23
months to html list items - 1161 entries
Turn the months into list items.
- Best score: 22
- Best player score: 22
- Position: #48 / 314
- Number of attempts: 5
Quicksort - 2114 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 / 473
- Number of attempts: 2
EDN reformat - 1233 entries
The goal is to make the code more readable and concise while maintaining its functionality.
- Best score: 17
- Best player score: 17
- Position: #14 / 174
- Number of attempts: 11
Pick and sort servers from mirror list - 466 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: 28
- Position: #6 / 92
- Number of attempts: 12
Remove line numbers - 791 entries
From http://web.archive.org/web/20140831121704/http://dirac.org/linux/gdb/02a-Memory_Layout_And_The_Stack.php#investigatingthestackwithgdb.
- Best score: 8
- Best player score: 12
- Position: #86 / 210
- Number of attempts: 5
Find fix point of cos - 1486 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 / 435
- Number of attempts: 1
Easier Align - 449 entries
Align the columns of a markdown table
- Best score: 51
- Best player score: 73
- Position: #24 / 101
- Number of attempts: 13
Paste a column after a column - 2672 entries
This task is very common while using multi-cursor. What is the elegant vim way ?
- Best score: 7
- Best player score: 14
- Position: #113 / 580
- Number of attempts: 8
Poorly indented Python comments - 1381 entries
Fix the alignment of some Python comments as quickly as possible.
- Best score: 15
- Best player score: 24
- Position: #95 / 227
- Number of attempts: 11
delete swap - 1918 entries
delete all swap
- Best score: 5
- Best player score: 5
- Position: #402 / 583
- Number of attempts: 1
Generate a very basic Python constructor (fixed) - 1297 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: 12
Fix the shell script! - 2710 entries
Fix the shell script with the fewest keystrokes!
- Best score: 26
- Best player score: 26
- Position: #65 / 637
- Number of attempts: 7
Visual block training - 1126 entries
You see the input. You see the output. Go.
- Best score: 17
- Best player score: 17
- Position: #15 / 210
- Number of attempts: 8
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
RUST Cargo.toml version to last - 402 entries
RUST Cargo.toml version to last. rusty practice on vimgolf
- Best score: 16
- Best player score: 16
- Position: #29 / 107
- Number of attempts: 3
Modernise code - 1439 entries
Modernise and clean up some C++ code.
- Best score: 34
- Best player score: 34
- Position: #76 / 333
- Number of attempts: 8
swap number pairs - 2174 entries
Swap the numbers in a bunch of 2-element arrays.
- Best score: 7
- Best player score: 16
- Position: #61 / 395
- Number of attempts: 12
Extend shell script - 168 entries
Just add some more stuff
- Best score: 37
- Best player score: 37
- Position: #12 / 51
- Number of attempts: 12
Easy modification of ssh config - 418 entries
Just add another alias to each worker
- Best score: 24
- Best player score: 24
- Position: #29 / 120
- Number of attempts: 12
VimGolf