Played Challenges
Changing date formats - 244 entries
Change the date format to Y/M/D.
- Best score: 37
- Best player score: 54
- Position: #24 / 83
- Number of attempts: 3
YAML to dotenv - 453 entries
Convert this YAML config file to a .env file.
- Best score: 16
- Best player score: 16
- Position: #4 / 114
- Number of attempts: 4
Change to ascending order - 247 entries
Change each line of numbers consistently from descending to ascending order.
- Best score: 17
- Best player score: 32
- Position: #21 / 66
- Number of attempts: 6
Generate an entry for each month - 165 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: 56
- Position: #34 / 49
- Number of attempts: 3
Fix the git merge conflicts - 123 entries
Solve the merge conflicts in the Python file
- Best score: 36
- Best player score: 58
- Position: #21 / 41
- Number of attempts: 1
The Fibonacci Spacer - 85 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: 25
- Best player score: 108
- Position: #27 / 29
- Number of attempts: 3
Fix the Scala Method - 158 entries
Fix the missing semicolons and the Int type, ensure the floating point division, and remove the unnecessary return.
- Best score: 9
- Best player score: 22
- Position: #4 / 53
- Number of attempts: 3
Change class fields from camel case to snake case - 354 entries
This is the reverse of the previous challenge: https://www.vimgolf.com/challenges/9v006705493c000000000513
- Best score: 18
- Best player score: 23
- Position: #51 / 88
- Number of attempts: 2
Reorganize Pokémon - 452 entries
Change the format of the each line and sort alphabetically.
- Best score: 18
- Best player score: 21
- Position: #41 / 124
- Number of attempts: 5
Replace csv column if it's not empty - 138 entries
Replace the credit_score_percentile column with the value 0.0 but leave the empty ones untouched
- Best score: 15
- Best player score: 37
- Position: #48 / 51
- Number of attempts: 1
Change readonly files - 42 entries
Try to write a file that was marked as read-only.
- Best score: 20
- Best player score: 53
- Position: #10 / 16
- Number of attempts: 1
extract struct tag in go - 56 entries
Can you extract all struct tags in the fewest keystrokes possible?
- Best score: 29
- Best player score: 40
- Position: #12 / 22
- Number of attempts: 7
CaN yOuR ViM dO ThAt? #1 - 141 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: #17 / 57
- Number of attempts: 2
Append leading hyphen count to each line - 55 entries
Append the number of leading hyphens to the end of each line.
- Best score: 23
- Best player score: 25
- Position: #7 / 17
- Number of attempts: 3
Move list of uuids into a SQL query - 88 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: 65
- Position: #14 / 37
- Number of attempts: 2
Markdown Blog Editing - 298 entries
Convert the given link text in start file to a markdown link list.
- Best score: 30
- Best player score: 42
- Position: #28 / 70
- Number of attempts: 5
Fix timezone format - 253 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: 17
- Position: #35 / 85
- Number of attempts: 3
Search different SQL column with similar where clause - 220 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: #26 / 54
- Number of attempts: 2
Remove adjacent duplicates - 520 entries
Try to find a way to remove adjacent duplicate letters.
- Best score: 19
- Best player score: 23
- Position: #60 / 135
- Number of attempts: 3
Rearrange array to single level - 1394 entries
The goal is to flatten the array into a single list and remove any empty elements.
- Best score: 14
- Best player score: 59
- Position: #207 / 228
- Number of attempts: 2
Rearrange array to one line - 667 entries
Rearrange the array content on only one line, and remove trailing commas
- Best score: 13
- Best player score: 30
- Position: #137 / 161
- Number of attempts: 2
Copy punctuation - 518 entries
I want to copy the last line’s brackets, quotes, and commas to each line. How?
- Best score: 19
- Best player score: 52
- Position: #102 / 131
- Number of attempts: 2
Column wise pasting - 174 entries
Make a table from 3 columns
- Best score: 17
- Best player score: 44
- Position: #35 / 39
- Number of attempts: 1
New teacher - 1072 entries
Update the details of the new CS teacher.
- Best score: 19
- Best player score: 21
- Position: #44 / 231
- Number of attempts: 8
months to html list items - 1042 entries
Turn the months into list items.
- Best score: 22
- Best player score: 25
- Position: #123 / 284
- Number of attempts: 8
Quicksort - 2002 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: #263 / 440
- Number of attempts: 4
Populate 3D bone names list - 633 entries
Ran into this at work, excited to see how this gets optimized
- Best score: 21
- Best player score: 26
- Position: #65 / 163
- Number of attempts: 6
Find fix point of cos - 1408 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: 15
- Position: #244 / 418
- Number of attempts: 2
Surround the 'z' character with brackets, quotes, and print as formatted string. - 561 entries
Surround the 'z' character with brackets, quotes, and print as formatted string.
- Best score: 17
- Best player score: 17
- Position: #233 / 314
- Number of attempts: 3
Paste a column after a column - 2555 entries
This task is very common while using multi-cursor. What is the elegant vim way ?
- Best score: 14
- Best player score: 24
- Position: #387 / 557
- Number of attempts: 3
Filter number combinations that don't add to 11 - 408 entries
Append the sum of each line to its end, alongside an equals sign, and remove any that do not sum to 11. The ordering of lines should stay the same. Note that the combinations are semi-arbitrary and not all 4-number combinations are present in the file.
- Best score: 27
- Best player score: 27
- Position: #44 / 117
- Number of attempts: 4
HS exam question - 1589 entries
Convert the data to a python dictionary
- Best score: 47
- Best player score: 61
- Position: #134 / 417
- Number of attempts: 6
Reformat symbols in list - 1625 entries
Saw this in some lecture, easy reformatting using multiple cursor in VS Code
- Best score: 24
- Best player score: 32
- Position: #210 / 349
- Number of attempts: 3
delete swap - 1788 entries
delete all swap
- Best score: 5
- Best player score: 5
- Position: #375 / 557
- Number of attempts: 6
Fix the shell script! - 2596 entries
Fix the shell script with the fewest keystrokes!
- Best score: 26
- Best player score: 42
- Position: #437 / 603
- Number of attempts: 2
hello-world-vimgolf - 2501 entries
Simple number generation
- Best score: 10
- Best player score: 13
- Position: #501 / 709
- Number of attempts: 3
Making 3 line function a one liner. - 329 entries
Simple challenge for frequent action while programming.
- Best score: 4
- Best player score: 4
- Position: #180 / 206
- Number of attempts: 1
Modernise code - 1400 entries
Modernise and clean up some C++ code.
- Best score: 34
- Best player score: 44
- Position: #185 / 323
- Number of attempts: 2
Satisfy the go linter - 2437 entries
You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?
- Best score: 20
- Best player score: 28
- Position: #359 / 481
- Number of attempts: 5
Add quotes to ansible playbook - 1001 entries
You created an ansible playbook, but forgot to add quotes. Can you fix it?
- Best score: 8
- Best player score: 10
- Position: #258 / 316
- Number of attempts: 4
Multiline to Single Line - 731 entries
Convert a multiline, indented file to a single line with no whitespace
- Best score: 5
- Best player score: 5
- Position: #256 / 310
- Number of attempts: 3
Data reformat - 294 entries
Reformat this copy-paste data! #csv
- Best score: 36
- Best player score: 62
- Position: #48 / 65
- Number of attempts: 1
xrandr outputs and dashes - 716 entries
uh oh, different video drivers identify display outputs with more dashes. Quick, need to change this xrandr script!
- Best score: 12
- Best player score: 12
- Position: #150 / 224
- Number of attempts: 9
Swap values inside brackets - 2511 entries
Easy challenge.
- Best score: 13
- Best player score: 15
- Position: #217 / 583
- Number of attempts: 5
Unsemantic linewrapping - 928 entries
[Inspired by a blog post I read: https://scott.mn/2014/02/21/semantic_linewrapping/. Text adapted.] Sometimes when editing a Markdown file, I wrap the lines semantically. Instead of inserting a newline at 70 columns (or whatever), or making paragraphs one long line, I put in newlines at a point that seems logical to me. This may seem silly, but it produces better diffs. Semantic linewrapping also makes editing snappier. I can delete, edit or insert sentences easily using linewise operations. Code-oriented text editors like Vim and [REDACTED] are really good at this kind of manipulation. Editing text that hasn't been wrapped semantically is a pain, though:
- Best score: 9
- Best player score: 13
- Position: #194 / 231
- Number of attempts: 2
Applying same text modification in several lines - 2893 entries
Remove identical text at the beginning of several lines and the closing parenthesis.
- Best score: 12
- Best player score: 13
- Position: #273 / 856
- Number of attempts: 5
Bad Copy Syntax - 2044 entries
Copy should be from right to left, but sometimes you type it wrong.
- Best score: 18
- Best player score: 21
- Position: #308 / 530
- Number of attempts: 2
remove lines containing the word "reader" - 3604 entries
easy stuff
- Best score: 9
- Best player score: 9
- Position: #506 / 1169
- Number of attempts: 3
From argument to object - 1513 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: 18
- Position: #271 / 460
- Number of attempts: 1
Just the middle - 11483 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 8
- Position: #3214 / 4209
- Number of attempts: 1
For all cases. - 161 entries
In this case... change it! :) Watch the line.
- Best score: 8
- Best player score: 9
- Position: #97 / 106
- Number of attempts: 1
Stairstep digits - 398 entries
Remove the evens. Double the odds.
- Best score: 9
- Best player score: 13
- Position: #129 / 146
- Number of attempts: 2
Simple addition - 331 entries
The right side of the equation is already there. We just need the left one now.
- Best score: 12
- Best player score: 15
- Position: #110 / 123
- Number of attempts: 2
create arrows in a list - 117 entries
Add arrow at same distance
- Best score: 10
- Best player score: 21
- Position: #71 / 73
- Number of attempts: 5
Create Leading Zeros - 241 entries
Create leading zeros only for id columns. Please use generic approach!
- Best score: 23
- Best player score: 49
- Position: #70 / 82
- Number of attempts: 2
Nesting SASS - 266 entries
Move a block inside another block and indent it
- Best score: 9
- Best player score: 18
- Position: #83 / 96
- Number of attempts: 1
lipsum lines - 278 entries
Convert a quoted block of text into strings in a list.
- Best score: 28
- Best player score: 32
- Position: #58 / 95
- Number of attempts: 5
One to Ten - 2227 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: 12
- Position: #369 / 677
- Number of attempts: 3
Change part of a function name in multiple occurrences - 662 entries
Change the middle part of the function name in multiple places, preferably using the next and dot commands.
- Best score: 14
- Best player score: 17
- Position: #165 / 208
- Number of attempts: 1
Delete to the end of the current line - 829 entries
Delete to the end of the current line, but keep the character under the cursor.
- Best score: 5
- Best player score: 6
- Position: #366 / 400
- Number of attempts: 1
move titles next to url, in quotes - 537 entries
had trouble with something similar
- Best score: 19
- Best player score: 22
- Position: #96 / 142
- Number of attempts: 3
unknown command - 167 entries
I want change 5 words
- Best score: 7
- Best player score: 34
- Position: #77 / 87
- Number of attempts: 1
Swap assigned value - 655 entries
Simple problem but looking for interesting solutions.
- Best score: 10
- Best player score: 11
- Position: #196 / 256
- Number of attempts: 4
Binary and Increment - 56 entries
Some numbers fun: not only increasing numbers but also increasing binary.
- Best score: 22
- Best player score: 28
- Position: #11 / 20
- Number of attempts: 1
VimGolfNight - 560 entries
Based on "The name of the game".
- Best score: 12
- Best player score: 12
- Position: #296 / 347
- Number of attempts: 1
Split the words - 372 entries
Add the spaces manually if you must, but if you use Vim's spell checking feature wisely, I think you'll save a LARGE number of strokes.
- Best score: 18
- Best player score: 38
- Position: #69 / 112
- Number of attempts: 6
attr_aligner - 3522 entries
Two attr keywords. Two separate indentations. Align the colons.
- Best score: 19
- Best player score: 19
- Position: #183 / 703
- Number of attempts: 4
quotes inside quotes - 3165 entries
taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)
- Best score: 14
- Best player score: 17
- Position: #948 / 1079
- Number of attempts: 1
Delete unwanted lines - 419 entries
Delete all lines which does not end in "o.."
- Best score: 9
- Best player score: 9
- Position: #197 / 230
- Number of attempts: 3
Python: Lots of function arguments - 119 entries
The function definition is too long for one line. The modeline helps you with some typical Python indent settings.
- Best score: 6
- Best player score: 19
- Position: #42 / 50
- Number of attempts: 3
Readable Rubyhash - 267 entries
Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!
- Best score: 23
- Best player score: 30
- Position: #74 / 95
- Number of attempts: 4
NATO phonetic alphabet - 529 entries
Transform the series of words into a list.
- Best score: 19
- Best player score: 21
- Position: #112 / 196
- Number of attempts: 3
The Quick Brown Fox Jumps Over The Lazy Vim - 425 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: 10
- Position: #99 / 193
- Number of attempts: 4
Switch function arguments - 2140 entries
How to switch two arguments of a function.
- Best score: 11
- Best player score: 11
- Position: #198 / 664
- Number of attempts: 6
Append semicolon after expressions - 1056 entries
Some lines need the semicolon, some don't.
- Best score: 11
- Best player score: 12
- Position: #266 / 419
- Number of attempts: 2
Ruby 1.9 hashes - 1249 entries
Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!
- Best score: 12
- Best player score: 12
- Position: #115 / 407
- Number of attempts: 5
Shebangs for all - 2016 entries
We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.
- Best score: 11
- Best player score: 19
- Position: #410 / 518
- Number of attempts: 1
A Simple One - 1057 entries
Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...
- Best score: 9
- Best player score: 9
- Position: #586 / 667
- Number of attempts: 1
Ruby 1.9 compat - 634 entries
Remember when Ruby supported `when <expr> :`? Well, it doesn't in 1.9, so let's make sure we use `then`, without ruining our lovely new hash syntax!
- Best score: 14
- Best player score: 16
- Position: #143 / 235
- Number of attempts: 3
Hatsuyume - 540 entries
http://en.wikipedia.org/wiki/Hatsuyume
- Best score: 15
- Best player score: 19
- Position: #31 / 187
- Number of attempts: 3
Turn this csv list into queries - 252 entries
Transform each line of this csv file into a MySQL-ready INSERT query.
- Best score: 98
- Best player score: 122
- Position: #51 / 101
- Number of attempts: 1
Reverse characters in a line - 776 entries
You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.
- Best score: 12
- Best player score: 23
- Position: #228 / 267
- Number of attempts: 1
Reformat most common surnames - 743 entries
Reformat copy-pasted table into a list of the most common surnames
- Best score: 23
- Best player score: 33
- Position: #139 / 215
- Number of attempts: 3
Change the content of a string - 1591 entries
This docstring is a complete lie. Fix it.
- Best score: 22
- Best player score: 23
- Position: #324 / 593
- Number of attempts: 4
Sort and add attributes - 1477 entries
Sort the states and add the attribute country to each record.
- Best score: 33
- Best player score: 34
- Position: #393 / 575
- Number of attempts: 3
Add fold markers to a .c file - 660 entries
Fold markers can make it easier to navigate source code. Add them to this .c file.
- Best score: 30
- Best player score: 36
- Position: #119 / 189
- Number of attempts: 1
Reconstruct the Sentence - 1589 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: 21
- Position: #259 / 425
- Number of attempts: 2
Braces or Brackets? - 1054 entries
Someone forgot whether to use braces or brackets and you have to clean up their code!
- Best score: 34
- Best player score: 37
- Position: #70 / 324
- Number of attempts: 3
Simple text editing with Vim - 12971 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 15
- Position: #2152 / 3733
- Number of attempts: 3
Reformat/Refactor a Golfer Class - 7150 entries
A simple case of removing unneeded code and fixing broken indentation.
- Best score: 28
- Best player score: 34
- Position: #325 / 1753
- Number of attempts: 6
Contributed Challenges
Generate an entry for each month - 165 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
Move list of uuids into a SQL query - 88 entries
Take the list of UUIDs and use them as a filter in the where statement of a SQL query
Fix the Scala Method - 158 entries
Fix the missing semicolons and the Int type, ensure the floating point division, and remove the unnecessary return.
The Fibonacci Spacer - 85 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)
Convert plain text into a markdown table - 24 entries
Convert the table to markdown to make it more usable
Replace csv column if it's not empty - 138 entries
Replace the credit_score_percentile column with the value 0.0 but leave the empty ones untouched
Change class fields from snake case to camel case - 183 entries
Change the class fields in this Scala class from snake case to camel case
Change class fields from camel case to snake case - 354 entries
This is the reverse of the previous challenge: https://www.vimgolf.com/challenges/9v006705493c000000000513
Replace markdown sections with numbering - 170 entries
Replace each section and subsection with their respective numbers
Nested JSON Flattener - 32 entries
Transform a deeply nested JSON structure into a flattened key-value format where each path is represented by dot notation
Fix the git merge conflicts - 123 entries
Solve the merge conflicts in the Python file
Swap columns and transform to CSV format - 202 entries
Turn this spreadsheet output into a CSV file but first swap the columns