Played Challenges
Change class fields from snake case to camel case - 197 entries
Change the class fields in this Scala class from snake case to camel case
- Best score: 13
- Best player score: 14
- Position: #50 / 77
- Number of attempts: 1
Reorganize Pokémon - 479 entries
Change the format of the each line and sort alphabetically.
- Best score: 18
- Best player score: 21
- Position: #62 / 133
- Number of attempts: 1
Replace csv column if it's not empty - 147 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: #12 / 54
- Number of attempts: 3
Fix timezone format - 258 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: 18
- Position: #50 / 86
- Number of attempts: 2
Remove adjacent duplicates - 541 entries
Try to find a way to remove adjacent duplicate letters.
- Best score: 19
- Best player score: 38
- Position: #106 / 140
- Number of attempts: 1
Rearrange array to single level - 1425 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: #105 / 233
- Number of attempts: 2
Rearrange array to one line - 680 entries
Rearrange the array content on only one line, and remove trailing commas
- Best score: 13
- Best player score: 23
- Position: #111 / 163
- Number of attempts: 2
Copy punctuation - 536 entries
I want to copy the last line’s brackets, quotes, and commas to each line. How?
- Best score: 19
- Best player score: 32
- Position: #53 / 137
- Number of attempts: 2
New teacher - 1197 entries
Update the details of the new CS teacher.
- Best score: 19
- Best player score: 20
- Position: #29 / 251
- Number of attempts: 10
Quicksort - 2005 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: #244 / 442
- Number of attempts: 5
EDN reformat - 1162 entries
The goal is to make the code more readable and concise while maintaining its functionality.
- Best score: 17
- Best player score: 22
- Position: #96 / 166
- Number of attempts: 8
Pick and sort servers from mirror list - 431 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: 30
- Position: #33 / 87
- Number of attempts: 8
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: 34
- Position: #118 / 163
- 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: #206 / 314
- Number of attempts: 1
Paste a column after a column - 2557 entries
This task is very common while using multi-cursor. What is the elegant vim way ?
- Best score: 14
- Best player score: 15
- Position: #118 / 558
- Number of attempts: 9
Many duplicates - 1451 entries
Quick and easy
- Best score: 7
- Best player score: 8
- Position: #292 / 471
- Number of attempts: 4
2 quick changes and a numbered list - 647 entries
The ascii will not be lost, but rather numbered in 4 digit blocks with leading zeros.
- Best score: 37
- Best player score: 38
- Position: #46 / 154
- Number of attempts: 11
delete swap - 1788 entries
delete all swap
- Best score: 5
- Best player score: 5
- Position: #340 / 557
- Number of attempts: 1
Visual block training - 1075 entries
You see the input. You see the output. Go.
- Best score: 17
- Best player score: 38
- Position: #114 / 205
- Number of attempts: 3
Put a newline after every 10 lines in vim - 1660 entries
Goal is to put a newline after every 10 lines in vim.
- Best score: 10
- Best player score: 12
- Position: #243 / 558
- Number of attempts: 2
Plotting some variables in python - 1661 entries
4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.
- Best score: 34
- Best player score: 42
- Position: #147 / 348
- Number of attempts: 5
Inverting Lines - 1907 entries
A simple challenge to invert all lines, except the first.
- Best score: 10
- Best player score: 12
- Position: #309 / 512
- Number of attempts: 1
HS Final exam vimgolf - 904 entries
Change the initial file to a single line containing all names comma-separated with numbers inside parentheses.
- Best score: 21
- Best player score: 24
- Position: #115 / 238
- Number of attempts: 3
Rural Post - 4547 entries
Simple challenge to remove all but the post code on each line
- Best score: 9
- Best player score: 9
- Position: #202 / 1109
- Number of attempts: 6
Multiline to Single Line - 735 entries
Convert a multiline, indented file to a single line with no whitespace
- Best score: 5
- Best player score: 5
- Position: #252 / 311
- Number of attempts: 3
Data reformat - 294 entries
Reformat this copy-paste data! #csv
- Best score: 36
- Best player score: 43
- Position: #31 / 65
- Number of attempts: 6
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: #146 / 224
- Number of attempts: 1
Simple, Practical, and Common - 33742 entries
Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.
- Best score: 22
- Best player score: 25
- Position: #3427 / 7447
- Number of attempts: 4
Hogwarts Email Sorting - 928 entries
Given a list of emails, get the students full name and their associated house.
- Best score: 20
- Best player score: 21
- Position: #107 / 262
- Number of attempts: 5
Get mail address from outlook format - 649 entries
Create a mail list space separated of mail list formatted by outlook
- Best score: 15
- Best player score: 16
- Position: #127 / 204
- Number of attempts: 4
prepend * to every non-blank line - 6353 entries
Prepend an asterisk to every non-blank line in the input file.
- Best score: 10
- Best player score: 16
- Position: #1098 / 1549
- Number of attempts: 2
One number per line - 18776 entries
Just give me the numbers.
- Best score: 14
- Best player score: 23
- Position: #3133 / 3875
- Number of attempts: 1
Right Align Part of the line - 133 entries
The challenge is to right align a part of the line - this is useful in some SQL queries where it's more clear which are the fields displayed
- Best score: 19
- Best player score: 33
- Position: #39 / 42
- Number of attempts: 1
V to the i - 4818 entries
Input is 99 V's. Output is 100 i's.
- Best score: 7
- Best player score: 8
- Position: #1498 / 1898
- Number of attempts: 2
Applying same text modification in several lines - 2897 entries
Remove identical text at the beginning of several lines and the closing parenthesis.
- Best score: 12
- Best player score: 17
- Position: #664 / 857
- Number of attempts: 1
Add semicolons - 10887 entries
Simply add a semicolon at the end of each line
- Best score: 10
- Best player score: 11
- Position: #1776 / 3074
- Number of attempts: 2
remove lines containing the word "reader" - 3604 entries
easy stuff
- Best score: 9
- Best player score: 10
- Position: #859 / 1169
- Number of attempts: 1
Com(m)a Trouble - 3880 entries
Someone was real stupid when placing his commas. Can you fix it?
- Best score: 12
- Best player score: 13
- Position: #350 / 878
- Number of attempts: 4
Wrap the text of an email message to 79 characters - 800 entries
You're replying to an email with silly long lines. Clean them up.
- Best score: 5
- Best player score: 5
- Position: #299 / 422
- Number of attempts: 6
Box it - 7916 entries
Create a box around a line.
- Best score: 21
- Best player score: 31
- Position: #1478 / 1881
- Number of attempts: 1
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: 20
- Position: #351 / 460
- Number of attempts: 1
Search and Replace 0 - 5007 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 12
- Best player score: 12
- Position: #722 / 1631
- Number of attempts: 3
Number Sort - 314 entries
sort the list of newline-separated numbers incrementally. Numbers are in the range 1 to 1000, with 500 missing
- Best score: 9
- Best player score: 9
- Position: #139 / 166
- Number of attempts: 1
comment and uncomment code inline - 1130 entries
It's very useful to be able to comment out a block of code in a quick edit. And likewise to uncomment the code. This operation often involves multi-line stanzas and even large blocks. With just line-wise navigation and insert mode this would cost you about 4 keystrokes per line. Master this hole of VimGolf and you'll quickly drop your key count in day to day Vim as well.
- Best score: 9
- Best player score: 18
- Position: #304 / 324
- Number of attempts: 2
Just the middle - 11495 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 9
- Position: #3662 / 4213
- Number of attempts: 2
Fiddle percentages into real numbers - 869 entries
Get rid of the '%' symbols and shift the decimal place. This is the easier version - all the columns line up.
- Best score: 13
- Best player score: 17
- Position: #221 / 293
- Number of attempts: 2
Free hyphen! - 176 entries
Just like "Inner hyphens", but I'm giving you a free hyphen to play with. Will your solution be any different?
- Best score: 9
- Best player score: 11
- Position: #88 / 90
- Number of attempts: 1
Restore order to the alphabet - 201 entries
The numbers are OK. The letters are wonky.
- Best score: 12
- Best player score: 16
- Position: #52 / 72
- Number of attempts: 3
Space out the alphabet - 1659 entries
Put 3 spaces between adjacent letters.
- Best score: 15
- Best player score: 22
- Position: #340 / 446
- Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10688 entries
A HAPPY NEW YEAR 2014 !
- Best score: 11
- Best player score: 12
- Position: #2516 / 3691
- Number of attempts: 1
Letter case trickery - 1630 entries
This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.
- Best score: 9
- Best player score: 10
- Position: #174 / 518
- Number of attempts: 6
Word frequency alignment - 291 entries
You've got to align the second column, but the spacing is inconvenient and there are nasty tabs in the way. If you're a "real Vim ninja," this could be very quick indeed...
- Best score: 5
- Best player score: 5
- Position: #124 / 161
- Number of attempts: 2
Checkerboard case pattern - 164 entries
All the squares are white. Make some of them black. But only the right ones.
- Best score: 15
- Best player score: 25
- Position: #56 / 61
- Number of attempts: 1
Presidential Sorting - 51 entries
Given a nice CSV formatted arrangement of the Presidents of the United States, we need to print out an alphabetical list in pretty columns. Prove that vim can conquer this basic Excel task!
- Best score: 40
- Best player score: 80
- Position: #24 / 26
- Number of attempts: 1
Vertical Limit - 2552 entries
transform a succession of one word lines to a an array of strings
- Best score: 21
- Best player score: 24
- Position: #309 / 757
- Number of attempts: 3
Append semicolon after expressions - 1056 entries
Some lines need the semicolon, some don't.
- Best score: 11
- Best player score: 13
- Position: #358 / 419
- Number of attempts: 1
Make it more readable - 2009 entries
Insert blank lines to make it more organized and readable
- Best score: 13
- Best player score: 15
- Position: #318 / 652
- Number of attempts: 2
Numbering a List - 1935 entries
Pretty simple, number the list.
- Best score: 13
- Best player score: 15
- Position: #92 / 654
- 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: #571 / 667
- Number of attempts: 1
Reformat most common surnames - 752 entries
Reformat copy-pasted table into a list of the most common surnames
- Best score: 23
- Best player score: 24
- Position: #34 / 216
- Number of attempts: 7
Change the content of a string - 1600 entries
This docstring is a complete lie. Fix it.
- Best score: 22
- Best player score: 27
- Position: #501 / 596
- Number of attempts: 1
Sort and add attributes - 1480 entries
Sort the states and add the attribute country to each record.
- Best score: 33
- Best player score: 34
- Position: #389 / 576
- Number of attempts: 2
Reconstruct the Sentence - 1599 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: #357 / 426
- Number of attempts: 2
Simple text editing with Vim - 13013 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 14
- Position: #2000 / 3744
- Number of attempts: 2