Played Challenges
Filling braces - 406 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: 24
- Best player score: 29
- Position: #59 / 132
- Number of attempts: 1
Even and Odd - 352 entries
separate the even numbers from the odd numbers
- Best score: 13
- Best player score: 30
- Position: #60 / 85
- Number of attempts: 1
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: 88
- Position: #28 / 30
- Number of attempts: 1
Swap function parameters and delete all comments in python. - 1036 entries
Swap function parameters and delete all comments in python.
- Best score: 19
- Best player score: 20
- Position: #60 / 251
- Number of attempts: 2
Delete the last function argument in python. - 707 entries
Delete the last function argument in this python script.
- Best score: 6
- Best player score: 7
- Position: #143 / 253
- Number of attempts: 1
Create json from a .env file - 1740 entries
A simple everyday task.
- Best score: 38
- Best player score: 78
- Position: #312 / 423
- Number of attempts: 2
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: 69
- Position: #139 / 302
- Number of attempts: 1
YAML to dotenv - 1639 entries
Convert this YAML config file to a .env file.
- Best score: 16
- Best player score: 33
- Position: #257 / 343
- Number of attempts: 1
Swap columns and transform to CSV format - 504 entries
Turn this spreadsheet output into a CSV file but first swap the columns
- Best score: 16
- Best player score: 19
- Position: #115 / 180
- Number of attempts: 1
Fix the git merge conflicts - 393 entries
Solve the merge conflicts in the Python file
- Best score: 36
- Best player score: 60
- Position: #69 / 110
- Number of attempts: 1
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: 25
- Position: #71 / 126
- Number of attempts: 1
Change class fields from camel case to snake case - 676 entries
This is the reverse of the previous challenge: https://www.vimgolf.com/challenges/9v006705493c000000000513
- Best score: 18
- Best player score: 23
- Position: #90 / 158
- Number of attempts: 1
Change class fields from snake case to camel case - 330 entries
Change the class fields in this Scala class from snake case to camel case
- Best score: 13
- Best player score: 13
- Position: #71 / 124
- Number of attempts: 1
Reorganize Pokémon - 894 entries
Change the format of the each line and sort alphabetically.
- Best score: 18
- Best player score: 26
- Position: #196 / 247
- Number of attempts: 2
Replace csv column if it's not empty - 312 entries
Replace the credit_score_percentile column with the value 0.0 but leave the empty ones untouched
- Best score: 15
- Best player score: 21
- Position: #89 / 101
- Number of attempts: 1
extract struct tag in go - 174 entries
Can you extract all struct tags in the fewest keystrokes possible?
- Best score: 29
- Best player score: 50
- Position: #34 / 51
- Number of attempts: 2
CaN yOuR ViM dO ThAt? #2 - 116 entries
Tsoding's famous "Can your Vim do that?" https://www.youtube.com/watch?v=F4xc4jQO7ck&t=1429s
- Best score: 49
- Best player score: 87
- Position: #25 / 30
- Number of attempts: 2
CaN yOuR ViM dO ThAt? #1 - 303 entries
Tsoding's famous "Can your Vim do that?" https://youtu.be/Bafo3hhheHU?si=DfcT4sUEMTSAevnx&t=1091
- Best score: 41
- Best player score: 47
- Position: #85 / 121
- Number of attempts: 3
Move list of uuids into a SQL query - 252 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: 73
- Position: #62 / 82
- Number of attempts: 1
Fix timezone format - 383 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: 19
- Position: #85 / 124
- 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: 32
- Position: #69 / 87
- Number of attempts: 1
Move to corresponding lines - 334 entries
Move the values to the corresponding lines.
- Best score: 16
- Best player score: 39
- Position: #70 / 76
- Number of attempts: 1
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: 27
- Position: #167 / 307
- Number of attempts: 3
Rearrange array to one line - 897 entries
Rearrange the array content on only one line, and remove trailing commas
- Best score: 13
- Best player score: 16
- Position: #71 / 207
- Number of attempts: 1
Copy punctuation - 755 entries
I want to copy the last line’s brackets, quotes, and commas to each line. How?
- Best score: 19
- Best player score: 59
- Position: #154 / 186
- Number of attempts: 2
New teacher - 1529 entries
Update the details of the new CS teacher.
- Best score: 19
- Best player score: 30
- Position: #246 / 320
- Number of attempts: 1
Remove line numbers - 786 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: 15
- Position: #123 / 209
- Number of attempts: 1
Python dataclasses - 1263 entries
Simple challenge to extract fields from a Python class
- Best score: 19
- Best player score: 27
- Position: #192 / 322
- Number of attempts: 2
Easy modification of ssh config - 406 entries
Just add another alias to each worker
- Best score: 24
- Best player score: 30
- Position: #77 / 119
- Number of attempts: 1
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: 26
- Position: #224 / 272
- Number of attempts: 1
Swap values inside brackets - 2551 entries
Easy challenge.
- Best score: 13
- Best player score: 23
- Position: #496 / 594
- Number of attempts: 1
remove lines containing the word "reader" - 3658 entries
easy stuff
- Best score: 9
- Best player score: 11
- Position: #957 / 1187
- Number of attempts: 2
Com(m)a Trouble - 3993 entries
Someone was real stupid when placing his commas. Can you fix it?
- Best score: 12
- Best player score: 30
- Position: #799 / 910
- Number of attempts: 1
Box it - 8003 entries
Create a box around a line.
- Best score: 21
- Best player score: 29
- Position: #1379 / 1901
- Number of attempts: 1
Extract argument from function - 2429 entries
The aim is to see if you can do some refactoring very fast.
- Best score: 13
- Best player score: 17
- Position: #657 / 773
- Number of attempts: 1
That hyphen - 2649 entries
"vim vi improved"
- Best score: 9
- Best player score: 13
- Position: #548 / 712
- Number of attempts: 1
Basic renumbering - 5737 entries
Renumbering Basic.
- Best score: 11
- Best player score: 21
- Position: #960 / 1281
- Number of attempts: 1
Vice versa - 8021 entries
Little role switching.
- Best score: 12
- Best player score: 16
- Position: #1470 / 2158
- Number of attempts: 1
Replace and keep the case - 471 entries
Replace all instance of plugin and Plugin to device and Device.
- Best score: 26
- Best player score: 36
- Position: #108 / 123
- Number of attempts: 2
One to Ten - 2260 entries
Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2
- Best score: 12
- Best player score: 15
- Position: #557 / 689
- Number of attempts: 1
Increment each number - 1067 entries
Increment each number individually by one
- Best score: 15
- Best player score: 30
- Position: #231 / 260
- Number of attempts: 1
Delete to the end of the current line - 892 entries
Delete to the end of the current line, but keep the character under the cursor.
- Best score: 5
- Best player score: 6
- Position: #385 / 427
- Number of attempts: 1
Put the months in order - 1001 entries
Our contractor thought that months should be in alphabetical order. Put them in calendar order please.
- Best score: 20
- Best player score: 57
- Position: #149 / 168
- Number of attempts: 2
Array transposition - 2481 entries
Transpose two arrays into one.
- Best score: 16
- Best player score: 29
- Position: #375 / 461
- Number of attempts: 2
Space out the alphabet - 1699 entries
Put 3 spaces between adjacent letters.
- Best score: 15
- Best player score: 31
- Position: #440 / 459
- Number of attempts: 1
Mute the second method of this script - 465 entries
prepend a # infront of every line of the second method
- Best score: 8
- Best player score: 10
- Position: #227 / 246
- Number of attempts: 1
Sorting database text output - 236 entries
Sometimes it is nice to be able to quickly take column-formatted text output from the SQL command line and turn it into a list of useful data. In this case we want a unique, sorted list of the values from the second column combined into one comma-separated list. What is the fewest strokes you can do this in?
- Best score: 24
- Best player score: 30
- Position: #79 / 87
- Number of attempts: 1
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: 22
- Position: #235 / 255
- Number of attempts: 1
Happy TvvO - 443 entries
Don’t forget the past, learn from it. Happy New Year.
- Best score: 12
- Best player score: 12
- Position: #161 / 213
- Number of attempts: 1
-a-b-c- - 3242 entries
Put hyphens everywhere.
- Best score: 13
- Best player score: 16
- Position: #886 / 1147
- Number of attempts: 1
Count both ways - 1053 entries
Right AND down.
- Best score: 13
- Best player score: 17
- Position: #324 / 362
- Number of attempts: 1
Do you demand a shrubbery? - 1208 entries
Use :redir and crush the emacsgolfers.
- Best score: 15
- Best player score: 20
- Position: #176 / 310
- Number of attempts: 1
Don't know what this is - 2070 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: 16
- Position: #552 / 596
- Number of attempts: 1
Where should I put the Newline? - 912 entries
Help me put the newline.
- Best score: 7
- Best player score: 8
- Position: #419 / 451
- Number of attempts: 1
Shuffle puzzle - 379 entries
Sort the lines in each indent group, and sort the groups. That's the pattern. Or just move lines around manually to get a better score.
- Best score: 13
- Best player score: 16
- Position: #89 / 109
- Number of attempts: 1
NATO phonetic alphabet - 554 entries
Transform the series of words into a list.
- Best score: 19
- Best player score: 29
- Position: #186 / 201
- Number of attempts: 1
SFD-ROC: The Quick Brown Fox - 212 entries
Someone has vandalized our text (again). Please fix to read: The Quick Brown Fox Jumps Over The Lazy Dog.
- Best score: 24
- Best player score: 28
- Position: #83 / 110
- Number of attempts: 1
The Quick Brown Fox Jumps Over The Lazy Vim - 464 entries
Someone has vandalized this text file and replaced the beginning character of one word in each line with a Big "X." Please remove the big X's, and fix each line to read "The Quick Brown Fox Jumps Over The Lazy Dog."
- Best score: 8
- Best player score: 12
- Position: #182 / 201
- Number of attempts: 1
SFD-ROC: vimvimvim - 1643 entries
Oh no, this line is longer than 80 chars... put each 'vim' on a new line.
- Best score: 8
- Best player score: 15
- Position: #425 / 458
- Number of attempts: 1
Saving the hashes(#) - 2116 entries
The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.
- Best score: 20
- Best player score: 30
- Position: #406 / 488
- Number of attempts: 1
Let's play some Ivmgolf - 1166 entries
Oops, I spelled that wrong.
- Best score: 7
- Best player score: 15
- Position: #450 / 461
- Number of attempts: 1
you're stuck on jQuery < 1.7 - 401 entries
replace calls to jQuery 1.7+'s `on` with calls to pre 1.7 `bind`
- Best score: 25
- Best player score: 32
- Position: #81 / 116
- Number of attempts: 2
Vertical Limit - 2641 entries
transform a succession of one word lines to a an array of strings
- Best score: 21
- Best player score: 29
- Position: #669 / 780
- Number of attempts: 1
Insert a Markdown link - 474 entries
Put a link in a markdown document, using the after-the-paragraph format.
- Best score: 22
- Best player score: 28
- Position: #130 / 158
- Number of attempts: 1
Sort and add attributes - 1601 entries
Sort the states and add the attribute country to each record.
- Best score: 33
- Best player score: 37
- Position: #510 / 619
- Number of attempts: 1
Reconstruct the Sentence - 1757 entries
Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.
- Best score: 19
- Best player score: 25
- Position: #381 / 459
- Number of attempts: 2
Whitespace, empty lines and tabs - 4070 entries
Convert tabs to spaces, strip empty lines and trailing whitespace.
- Best score: 16
- Best player score: 55
- Position: #836 / 868
- Number of attempts: 1
Simple text editing with Vim - 13667 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 24
- Position: #3278 / 3914
- Number of attempts: 1
Nıklas Rıeken
Twitter2:
#computerscience #optimization #vim #guitar #ukulele #kfcuerdingen #jets #mets #effectivealtruism #istillbelieve #nosteponsnek
VimGolf