Played Challenges
New teacher - 836 entries
Update the details of the new CS teacher.
- Best score: 19
- Best player score: 20
- Position: #23 / 174
- Number of attempts: 10
Quicksort - 1875 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: #233 / 411
- Number of attempts: 5
EDN reformat - 1120 entries
The goal is to make the code more readable and concise while maintaining its functionality.
- Best score: 17
- Best player score: 22
- Position: #91 / 157
- Number of attempts: 8
Pick and sort servers from mirror list - 409 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: #31 / 84
- Number of attempts: 8
Populate 3D bone names list - 589 entries
Ran into this at work, excited to see how this gets optimized
- Best score: 21
- Best player score: 34
- Position: #111 / 150
- Number of attempts: 2
Surround the 'z' character with brackets, quotes, and print as formatted string. - 538 entries
Surround the 'z' character with brackets, quotes, and print as formatted string.
- Best score: 17
- Best player score: 17
- Position: #206 / 300
- Number of attempts: 1
Paste a column after a column - 2504 entries
This task is very common while using multi-cursor. What is the elegant vim way ?
- Best score: 14
- Best player score: 15
- Position: #116 / 547
- Number of attempts: 9
Many duplicates - 1443 entries
Quick and easy
- Best score: 7
- Best player score: 8
- Position: #291 / 467
- Number of attempts: 4
2 quick changes and a numbered list - 642 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 / 153
- Number of attempts: 11
delete swap - 1768 entries
delete all swap
- Best score: 5
- Best player score: 5
- Position: #340 / 548
- Number of attempts: 1
Visual block training - 1069 entries
You see the input. You see the output. Go.
- Best score: 17
- Best player score: 38
- Position: #113 / 203
- Number of attempts: 3
Put a newline after every 10 lines in vim - 1656 entries
Goal is to put a newline after every 10 lines in vim.
- Best score: 10
- Best player score: 12
- Position: #243 / 555
- Number of attempts: 2
Plotting some variables in python - 1660 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 / 347
- Number of attempts: 5
Inverting Lines - 1881 entries
A simple challenge to invert all lines, except the first.
- Best score: 10
- Best player score: 12
- Position: #305 / 508
- Number of attempts: 1
HS Final exam vimgolf - 897 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: #114 / 236
- Number of attempts: 3
Rural Post - 4460 entries
Simple challenge to remove all but the post code on each line
- Best score: 9
- Best player score: 9
- Position: #202 / 1092
- Number of attempts: 6
Multiline to Single Line - 699 entries
Convert a multiline, indented file to a single line with no whitespace
- Best score: 5
- Best player score: 5
- Position: #252 / 301
- 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 - 700 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 / 220
- Number of attempts: 1
Simple, Practical, and Common - 33571 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: #3412 / 7405
- Number of attempts: 4
Hogwarts Email Sorting - 915 entries
Given a list of emails, get the students full name and their associated house.
- Best score: 20
- Best player score: 21
- Position: #106 / 259
- Number of attempts: 5
Get mail address from outlook format - 647 entries
Create a mail list space separated of mail list formatted by outlook
- Best score: 15
- Best player score: 16
- Position: #127 / 203
- Number of attempts: 4
prepend * to every non-blank line - 6297 entries
Prepend an asterisk to every non-blank line in the input file.
- Best score: 10
- Best player score: 16
- Position: #1087 / 1534
- Number of attempts: 2
One number per line - 18709 entries
Just give me the numbers.
- Best score: 14
- Best player score: 23
- Position: #3125 / 3856
- 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 - 4796 entries
Input is 99 V's. Output is 100 i's.
- Best score: 7
- Best player score: 8
- Position: #1494 / 1891
- Number of attempts: 2
Applying same text modification in several lines - 2865 entries
Remove identical text at the beginning of several lines and the closing parenthesis.
- Best score: 12
- Best player score: 17
- Position: #654 / 846
- Number of attempts: 1
Add semicolons - 10845 entries
Simply add a semicolon at the end of each line
- Best score: 10
- Best player score: 11
- Position: #1772 / 3060
- Number of attempts: 2
remove lines containing the word "reader" - 3574 entries
easy stuff
- Best score: 9
- Best player score: 10
- Position: #855 / 1158
- Number of attempts: 1
Com(m)a Trouble - 3780 entries
Someone was real stupid when placing his commas. Can you fix it?
- Best score: 12
- Best player score: 13
- Position: #346 / 855
- Number of attempts: 4
Wrap the text of an email message to 79 characters - 750 entries
You're replying to an email with silly long lines. Clean them up.
- Best score: 5
- Best player score: 5
- Position: #299 / 405
- Number of attempts: 6
Box it - 7902 entries
Create a box around a line.
- Best score: 21
- Best player score: 31
- Position: #1472 / 1874
- Number of attempts: 1
From argument to object - 1503 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: #348 / 455
- Number of attempts: 1
Search and Replace 0 - 4964 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 12
- Best player score: 12
- Position: #722 / 1617
- 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 - 1118 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: #301 / 321
- Number of attempts: 2
Free hyphen! - 169 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: #87 / 89
- 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 - 1657 entries
Put 3 spaces between adjacent letters.
- Best score: 15
- Best player score: 22
- Position: #340 / 444
- Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10656 entries
A HAPPY NEW YEAR 2014 !
- Best score: 11
- Best player score: 12
- Position: #2509 / 3679
- Number of attempts: 1
Word frequency alignment - 290 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
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 - 2522 entries
transform a succession of one word lines to a an array of strings
- Best score: 21
- Best player score: 24
- Position: #305 / 751
- Number of attempts: 3
Append semicolon after expressions - 1046 entries
Some lines need the semicolon, some don't.
- Best score: 11
- Best player score: 13
- Position: #355 / 413
- Number of attempts: 1
Numbering a List - 1931 entries
Pretty simple, number the list.
- Best score: 13
- Best player score: 15
- Position: #91 / 652
- Number of attempts: 1
A Simple One - 1043 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 / 659
- Number of attempts: 1
Reformat most common surnames - 691 entries
Reformat copy-pasted table into a list of the most common surnames
- Best score: 23
- Best player score: 24
- Position: #33 / 205
- Number of attempts: 7
Change the content of a string - 1552 entries
This docstring is a complete lie. Fix it.
- Best score: 22
- Best player score: 27
- Position: #487 / 580
- Number of attempts: 1
Sort and add attributes - 1421 entries
Sort the states and add the attribute country to each record.
- Best score: 33
- Best player score: 34
- Position: #377 / 552
- Number of attempts: 2
Reconstruct the Sentence - 1477 entries
Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.
- Best score: 20
- Best player score: 25
- Position: #342 / 405
- Number of attempts: 2
Simple text editing with Vim - 12680 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 14
- Position: #1982 / 3665
- Number of attempts: 2