Played Challenges
Changing date formats - 432 entries
Change the date format to Y/M/D.
- Best score: 37
- Best player score: 54
- Position: #34 / 134
- Number of attempts: 3
YAML to dotenv - 917 entries
Convert this YAML config file to a .env file.
- Best score: 16
- Best player score: 16
- Position: #4 / 201
- Number of attempts: 4
Change to ascending order - 349 entries
Change each line of numbers consistently from descending to ascending order.
- Best score: 17
- Best player score: 32
- Position: #24 / 92
- Number of attempts: 6
Generate an entry for each month - 235 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: #40 / 66
- Number of attempts: 3
Fix the git merge conflicts - 214 entries
Solve the merge conflicts in the Python file
- Best score: 36
- Best player score: 58
- Position: #35 / 61
- Number of attempts: 1
The Fibonacci Spacer - 135 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: #37 / 39
- Number of attempts: 3
Fix the Scala Method - 232 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 / 74
- Number of attempts: 3
Change class fields from camel case to snake case - 457 entries
This is the reverse of the previous challenge: https://www.vimgolf.com/challenges/9v006705493c000000000513
- Best score: 18
- Best player score: 23
- Position: #60 / 110
- Number of attempts: 2
Reorganize Pokémon - 602 entries
Change the format of the each line and sort alphabetically.
- Best score: 18
- Best player score: 21
- Position: #55 / 164
- Number of attempts: 5
Replace csv column if it's not empty - 193 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: #63 / 66
- Number of attempts: 1
Change readonly files - 69 entries
Try to write a file that was marked as read-only.
- Best score: 20
- Best player score: 53
- Position: #14 / 21
- Number of attempts: 1
extract struct tag in go - 89 entries
Can you extract all struct tags in the fewest keystrokes possible?
- Best score: 29
- Best player score: 40
- Position: #15 / 29
- Number of attempts: 7
CaN yOuR ViM dO ThAt? #1 - 180 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: #22 / 72
- Number of attempts: 2
Append leading hyphen count to each line - 84 entries
Append the number of leading hyphens to the end of each line.
- Best score: 23
- Best player score: 25
- Position: #9 / 27
- Number of attempts: 3
Move list of uuids into a SQL query - 155 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: #21 / 53
- Number of attempts: 2
Markdown Blog Editing - 370 entries
Convert the given link text in start file to a markdown link list.
- Best score: 30
- Best player score: 42
- Position: #33 / 86
- Number of attempts: 5
Fix timezone format - 294 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: #39 / 94
- Number of attempts: 3
Search different SQL column with similar where clause - 265 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: #30 / 60
- Number of attempts: 2
Remove adjacent duplicates - 571 entries
Try to find a way to remove adjacent duplicate letters.
- Best score: 19
- Best player score: 23
- Position: #66 / 149
- Number of attempts: 3
Rearrange array to single level - 1515 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: #227 / 251
- Number of attempts: 2
Rearrange array to one line - 717 entries
Rearrange the array content on only one line, and remove trailing commas
- Best score: 13
- Best player score: 30
- Position: #145 / 172
- Number of attempts: 2
Copy punctuation - 591 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: #115 / 147
- Number of attempts: 2
Column wise pasting - 229 entries
Make a table from 3 columns
- Best score: 17
- Best player score: 44
- Position: #43 / 49
- Number of attempts: 1
New teacher - 1364 entries
Update the details of the new CS teacher.
- Best score: 19
- Best player score: 21
- Position: #54 / 285
- Number of attempts: 8
months to html list items - 1088 entries
Turn the months into list items.
- Best score: 22
- Best player score: 25
- Position: #127 / 295
- Number of attempts: 8
Quicksort - 2036 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: #268 / 451
- Number of attempts: 4
Populate 3D bone names list - 636 entries
Ran into this at work, excited to see how this gets optimized
- Best score: 21
- Best player score: 26
- Position: #66 / 164
- Number of attempts: 6
Find fix point of cos - 1426 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: #246 / 422
- Number of attempts: 2
Surround the 'z' character with brackets, quotes, and print as formatted string. - 567 entries
Surround the 'z' character with brackets, quotes, and print as formatted string.
- Best score: 17
- Best player score: 17
- Position: #233 / 318
- Number of attempts: 3
Paste a column after a column - 2604 entries
This task is very common while using multi-cursor. What is the elegant vim way ?
- Best score: 14
- Best player score: 24
- Position: #393 / 565
- Number of attempts: 3
Filter number combinations that don't add to 11 - 415 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 / 119
- Number of attempts: 4
HS exam question - 1596 entries
Convert the data to a python dictionary
- Best score: 47
- Best player score: 61
- Position: #135 / 418
- Number of attempts: 6
Reformat symbols in list - 1633 entries
Saw this in some lecture, easy reformatting using multiple cursor in VS Code
- Best score: 24
- Best player score: 32
- Position: #211 / 351
- Number of attempts: 3
delete swap - 1801 entries
delete all swap
- Best score: 5
- Best player score: 5
- Position: #375 / 561
- Number of attempts: 6
Fix the shell script! - 2605 entries
Fix the shell script with the fewest keystrokes!
- Best score: 26
- Best player score: 42
- Position: #439 / 606
- Number of attempts: 2
hello-world-vimgolf - 2505 entries
Simple number generation
- Best score: 10
- Best player score: 13
- Position: #502 / 712
- Number of attempts: 3
Making 3 line function a one liner. - 340 entries
Simple challenge for frequent action while programming.
- Best score: 4
- Best player score: 4
- Position: #180 / 209
- Number of attempts: 1
Modernise code - 1410 entries
Modernise and clean up some C++ code.
- Best score: 34
- Best player score: 44
- Position: #186 / 326
- Number of attempts: 2
Satisfy the go linter - 2450 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: #361 / 485
- Number of attempts: 5
Add quotes to ansible playbook - 1015 entries
You created an ansible playbook, but forgot to add quotes. Can you fix it?
- Best score: 8
- Best player score: 10
- Position: #261 / 319
- Number of attempts: 4
Multiline to Single Line - 737 entries
Convert a multiline, indented file to a single line with no whitespace
- Best score: 5
- Best player score: 5
- Position: #256 / 313
- Number of attempts: 3
Data reformat - 304 entries
Reformat this copy-paste data! #csv
- Best score: 36
- Best player score: 62
- Position: #49 / 66
- Number of attempts: 1
xrandr outputs and dashes - 724 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 / 225
- Number of attempts: 9
Swap values inside brackets - 2521 entries
Easy challenge.
- Best score: 13
- Best player score: 15
- Position: #217 / 585
- Number of attempts: 5
Unsemantic linewrapping - 934 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: #195 / 233
- Number of attempts: 2
Applying same text modification in several lines - 2907 entries
Remove identical text at the beginning of several lines and the closing parenthesis.
- Best score: 12
- Best player score: 13
- Position: #273 / 860
- Number of attempts: 5
Bad Copy Syntax - 2052 entries
Copy should be from right to left, but sometimes you type it wrong.
- Best score: 18
- Best player score: 21
- Position: #308 / 534
- Number of attempts: 2
remove lines containing the word "reader" - 3614 entries
easy stuff
- Best score: 9
- Best player score: 9
- Position: #506 / 1173
- Number of attempts: 3
From argument to object - 1524 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 / 463
- Number of attempts: 1
Just the middle - 11500 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 8
- Position: #3216 / 4216
- Number of attempts: 1
For all cases. - 168 entries
In this case... change it! :) Watch the line.
- Best score: 8
- Best player score: 9
- Position: #99 / 108
- Number of attempts: 1
Stairstep digits - 407 entries
Remove the evens. Double the odds.
- Best score: 9
- Best player score: 13
- Position: #130 / 149
- Number of attempts: 2
Simple addition - 332 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: #111 / 124
- Number of attempts: 2
create arrows in a list - 128 entries
Add arrow at same distance
- Best score: 10
- Best player score: 21
- Position: #74 / 77
- Number of attempts: 5
Create Leading Zeros - 245 entries
Create leading zeros only for id columns. Please use generic approach!
- Best score: 23
- Best player score: 49
- Position: #71 / 84
- Number of attempts: 2
Nesting SASS - 278 entries
Move a block inside another block and indent it
- Best score: 9
- Best player score: 18
- Position: #85 / 98
- 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 - 2240 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 / 681
- Number of attempts: 3
Change part of a function name in multiple occurrences - 672 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: #167 / 210
- Number of attempts: 1
Delete to the end of the current line - 849 entries
Delete to the end of the current line, but keep the character under the cursor.
- Best score: 5
- Best player score: 6
- Position: #372 / 407
- Number of attempts: 1
move titles next to url, in quotes - 549 entries
had trouble with something similar
- Best score: 19
- Best player score: 22
- Position: #97 / 145
- Number of attempts: 3
unknown command - 169 entries
I want change 5 words
- Best score: 7
- Best player score: 34
- Position: #78 / 89
- Number of attempts: 1
Swap assigned value - 664 entries
Simple problem but looking for interesting solutions.
- Best score: 10
- Best player score: 11
- Position: #196 / 258
- 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 - 575 entries
Based on "The name of the game".
- Best score: 12
- Best player score: 12
- Position: #296 / 352
- 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 - 3525 entries
Two attr keywords. Two separate indentations. Align the colons.
- Best score: 19
- Best player score: 19
- Position: #183 / 706
- Number of attempts: 4
quotes inside quotes - 3182 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: #951 / 1085
- Number of attempts: 1
Delete unwanted lines - 431 entries
Delete all lines which does not end in "o.."
- Best score: 9
- Best player score: 9
- Position: #197 / 234
- 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 - 274 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: #75 / 97
- Number of attempts: 4
NATO phonetic alphabet - 538 entries
Transform the series of words into a list.
- Best score: 19
- Best player score: 21
- Position: #113 / 197
- 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 - 2152 entries
How to switch two arguments of a function.
- Best score: 11
- Best player score: 11
- Position: #198 / 667
- Number of attempts: 6
Append semicolon after expressions - 1057 entries
Some lines need the semicolon, some don't.
- Best score: 11
- Best player score: 12
- Position: #266 / 420
- Number of attempts: 2
Ruby 1.9 hashes - 1260 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 / 410
- Number of attempts: 5
Shebangs for all - 2046 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: #413 / 522
- Number of attempts: 1
A Simple One - 1064 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 / 670
- Number of attempts: 1
Ruby 1.9 compat - 640 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: #144 / 236
- Number of attempts: 3
Hatsuyume - 548 entries
http://en.wikipedia.org/wiki/Hatsuyume
- Best score: 15
- Best player score: 19
- Position: #32 / 189
- 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 - 778 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: #229 / 268
- Number of attempts: 1
Reformat most common surnames - 755 entries
Reformat copy-pasted table into a list of the most common surnames
- Best score: 23
- Best player score: 33
- Position: #141 / 217
- Number of attempts: 3
Change the content of a string - 1649 entries
This docstring is a complete lie. Fix it.
- Best score: 22
- Best player score: 23
- Position: #331 / 609
- Number of attempts: 4
Sort and add attributes - 1501 entries
Sort the states and add the attribute country to each record.
- Best score: 33
- Best player score: 34
- Position: #399 / 582
- Number of attempts: 3
Add fold markers to a .c file - 664 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 / 191
- Number of attempts: 1
Reconstruct the Sentence - 1649 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: #263 / 434
- Number of attempts: 2
Braces or Brackets? - 1073 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 / 331
- Number of attempts: 3
Simple text editing with Vim - 13095 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 15
- Position: #2166 / 3767
- Number of attempts: 3
Reformat/Refactor a Golfer Class - 7230 entries
A simple case of removing unneeded code and fixing broken indentation.
- Best score: 10
- Best player score: 34
- Position: #327 / 1779
- Number of attempts: 6
Contributed Challenges
Generate an entry for each month - 235 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 - 155 entries
Take the list of UUIDs and use them as a filter in the where statement of a SQL query
Fix the Scala Method - 232 entries
Fix the missing semicolons and the Int type, ensure the floating point division, and remove the unnecessary return.
The Fibonacci Spacer - 135 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 - 27 entries
Convert the table to markdown to make it more usable
Replace csv column if it's not empty - 193 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 - 240 entries
Change the class fields in this Scala class from snake case to camel case
Change class fields from camel case to snake case - 457 entries
This is the reverse of the previous challenge: https://www.vimgolf.com/challenges/9v006705493c000000000513
Replace markdown sections with numbering - 205 entries
Replace each section and subsection with their respective numbers
Nested JSON Flattener - 78 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 - 214 entries
Solve the merge conflicts in the Python file
Swap columns and transform to CSV format - 310 entries
Turn this spreadsheet output into a CSV file but first swap the columns