Played Challenges
Easier Align - 358 entries
Align the columns of a markdown table
- Best score: 51
- Best player score: 86
- Position: #24 / 92
- Number of attempts: 3
Reformat symbols in list - 1507 entries
Saw this in some lecture, easy reformatting using multiple cursor in VS Code
- Best score: 24
- Best player score: 27
- Position: #152 / 334
- Number of attempts: 5
Simple, Practical, and Common - 33483 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: 22
- Position: #678 / 7384
- Number of attempts: 9
Swap values - 4554 entries
Well, swap the values...
- Best score: 11
- Best player score: 14
- Position: #695 / 1259
- Number of attempts: 3
One number per line - 18673 entries
Just give me the numbers.
- Best score: 14
- Best player score: 14
- Position: #547 / 3852
- Number of attempts: 14
Unsemantic linewrapping - 901 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: 9
- Position: #30 / 226
- Number of attempts: 1
V to the i - 4771 entries
Input is 99 V's. Output is 100 i's.
- Best score: 7
- Best player score: 7
- Position: #419 / 1887
- Number of attempts: 5
Add semicolons - 10831 entries
Simply add a semicolon at the end of each line
- Best score: 10
- Best player score: 11
- Position: #996 / 3055
- Number of attempts: 3
Bad Copy Syntax - 2009 entries
Copy should be from right to left, but sometimes you type it wrong.
- Best score: 18
- Best player score: 19
- Position: #102 / 518
- Number of attempts: 4
Split line with dots - 2131 entries
This line is too long, split it.
- Best score: 15
- Best player score: 22
- Position: #452 / 633
- Number of attempts: 4
Box it - 7849 entries
Create a box around a line.
- Best score: 21
- Best player score: 25
- Position: #995 / 1870
- Number of attempts: 1
Cool or not? - 802 entries
abc trying to be cool or not...
- Best score: 15
- Best player score: 15
- Position: #45 / 228
- Number of attempts: 3
Every other line - 2902 entries
AaAaAaA
- Best score: 12
- Best player score: 13
- Position: #130 / 702
- Number of attempts: 4
Copy three lines - 2869 entries
If the site is up (by some miracle), make the text under every header identical.
- Best score: 13
- Best player score: 15
- Position: #214 / 639
- Number of attempts: 3
Extract argument from function - 2337 entries
The aim is to see if you can do some refactoring very fast.
- Best score: 13
- Best player score: 13
- Position: #176 / 750
- Number of attempts: 9
Start coding format - 149 entries
I used to start coding with following format: int main(){ -(cursor here) }
- Best score: 22
- Best player score: 22
- Position: #10 / 71
- Number of attempts: 4
Search and Replace 0 - 4853 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 12
- Best player score: 12
- Position: #467 / 1605
- Number of attempts: 2
That hyphen - 2572 entries
"vim vi improved"
- Best score: 9
- Best player score: 11
- Position: #344 / 698
- Number of attempts: 2
Just the middle - 11380 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 8
- Position: #2291 / 4174
- Number of attempts: 1
Make HTML List - 1050 entries
Turn the comma separated list into an unordered html list.
- Best score: 33
- Best player score: 36
- Position: #69 / 273
- Number of attempts: 6
Python Hello World! Reformatting - 955 entries
A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.
- Best score: 39
- Best player score: 41
- Position: #65 / 371
- Number of attempts: 4
Basic renumbering - 5605 entries
Renumbering Basic.
- Best score: 11
- Best player score: 11
- Position: #45 / 1260
- Number of attempts: 5
FoodCritic023: Prefer conditional attributes - 179 entries
FoodCritic (www.foodcritic.io) is a lint tool for your Chef (learn.chef.io) cookbooks. FC023 indicates that you should prefer Chef guards over Ruby conditions. This challenge expects you to be able to fix this issue in a sample cookbook, given the FoodCritic output: ================================================================ FC023: Prefer conditional attributes: cookbooks/foo/recipes/default.rb:25 ================================================================ See http://www.foodcritic.io/#FC023 for more details about the changes being made.
- Best score: 25
- Best player score: 26
- Position: #16 / 52
- Number of attempts: 5
Add to end of each line... kinda - 329 entries
Visual-block mode can be used to add something to the end of each line, even if they are of differing lengths. However, what if it's not quite at the end?
- Best score: 12
- Best player score: 12
- Position: #86 / 173
- Number of attempts: 1
Combines all items - 307 entries
For each line that starts with the same number I want to combine its contents
- Best score: 9
- Best player score: 9
- Position: #31 / 139
- Number of attempts: 2
replace 2nd column blanks with values in same column if blank - 232 entries
Where ,SOMELOGB and ,SOMELOGC replaces each /r carriage return if 2nd column is blank. The replace only happens if 2nd column is blank though and should replace up to the non blank row.
- Best score: 15
- Best player score: 16
- Position: #33 / 82
- Number of attempts: 2
Vice versa - 7865 entries
Little role switching.
- Best score: 12
- Best player score: 12
- Position: #225 / 2114
- Number of attempts: 7
7th Birthday - 187 entries
We have a bunch of numbers written from 0 to 9 in the order present in the text input file. The task is to create 7 by replacing the numbers with dashes.
- Best score: 19
- Best player score: 19
- Position: #11 / 74
- Number of attempts: 7
Free hyphen! - 165 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: #71 / 88
- Number of attempts: 2
C Reformatting - 689 entries
You may use Visual mode... or not. #uppercase
- Best score: 30
- Best player score: 32
- Position: #42 / 162
- Number of attempts: 7
Paragraph sort - 431 entries
My large herbivorous mammals, Vim commands, and POSIX utilities need to be sorted separately.
- Best score: 14
- Best player score: 14
- Position: #25 / 124
- Number of attempts: 3
Vim's not included features - 220 entries
Filter not included (-) features in a hypothetical installation of vim.
- Best score: 23
- Best player score: 23
- Position: #3 / 64
- Number of attempts: 6
Sorting a glossary - 127 entries
Sort a glossary. Glossary head contains a header phrase ending with ':' and glossary body has multi line text indented with a tab.
- Best score: 6
- Best player score: 6
- Position: #50 / 80
- Number of attempts: 1
Order and join - 965 entries
There's something special about the input order.
- Best score: 10
- Best player score: 12
- Position: #160 / 258
- Number of attempts: 2
Paragraph breaks - 509 entries
Swap the blank lines and the aaa lines.
- Best score: 10
- Best player score: 11
- Position: #65 / 166
- Number of attempts: 3
Array of characters - 157 entries
We all copy paste things off the internet, but the syntax doesn't look right. Fix it as fast as possible.
- Best score: 33
- Best player score: 41
- Position: #29 / 46
- Number of attempts: 3
comments galore - 1017 entries
Basic comment reformatting
- Best score: 10
- Best player score: 10
- Position: #206 / 421
- Number of attempts: 4
Inner hyphens - 130 entries
Yet another hyphen challenge. Adding 5 hyphens to a file shouldn't be too hard.
- Best score: 11
- Best player score: 12
- Position: #63 / 80
- Number of attempts: 2
Scrambled numbers - 780 entries
Four is NOT 1. One is 1.
- Best score: 18
- Best player score: 20
- Position: #64 / 183
- Number of attempts: 6
Align commas - 1063 entries
There are 15,000 aligning challenges on vimgolf.com, and they're all exactly the same. I hope this one is a little different.
- Best score: 11
- Best player score: 15
- Position: #120 / 243
- Number of attempts: 2
Generate a list of numbers - 284 entries
Please generate list of numbers from 1 to 20.
- Best score: 14
- Best player score: 14
- Position: #37 / 137
- Number of attempts: 5
One to Ten - 2174 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: #162 / 664
- Number of attempts: 4
Song Transcription Oops - 236 entries
When transcribing vocal music to Canjo Tab you can start by finding the lowest note and assigning that to zero and working your way up from there. However, without fail, I tend to miscount the notes and when I am near done I find a lower note. I mark this with a "z". This means I have to increase all the previous ones by 1. just a sting of numbers :)
- Best score: 15
- Best player score: 15
- Position: #31 / 77
- Number of attempts: 5
Collect List - 4267 entries
Convert to comma separated list.
- Best score: 12
- Best player score: 12
- Position: #253 / 1188
- Number of attempts: 4
VimGolfNight - 538 entries
Based on "The name of the game".
- Best score: 12
- Best player score: 12
- Position: #244 / 344
- Number of attempts: 2
Space out the alphabet - 1630 entries
Put 3 spaces between adjacent letters.
- Best score: 15
- Best player score: 17
- Position: #187 / 442
- Number of attempts: 1
Fix the XML - 1000 entries
The challenge consists in having a valid xml from an incomplete source.
- Best score: 18
- Best player score: 23
- Position: #110 / 287
- Number of attempts: 3
I forgot quotes - 15946 entries
Oops.
- Best score: 10
- Best player score: 10
- Position: #479 / 4166
- Number of attempts: 8
-a-b-c- - 3183 entries
Put hyphens everywhere.
- Best score: 13
- Best player score: 13
- Position: #183 / 1132
- Number of attempts: 3
120 Degrees - 469 entries
Rotate that triangle.
- Best score: 14
- Best player score: 16
- Position: #43 / 144
- Number of attempts: 4
Gray area - 745 entries
It's a golf metaphor or something.
- Best score: 11
- Best player score: 12
- Position: #101 / 270
- Number of attempts: 6
Do you demand a shrubbery? - 1136 entries
Use :redir and crush the emacsgolfers.
- Best score: 15
- Best player score: 18
- Position: #149 / 298
- Number of attempts: 7
Don't know what this is - 1996 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: 12
- Position: #201 / 581
- Number of attempts: 4
Where should I put the Newline? - 874 entries
Help me put the newline.
- Best score: 7
- Best player score: 7
- Position: #184 / 436
- Number of attempts: 2
Mess in revision history - 1183 entries
Help Joe clean up what Steve has cobbled.
- Best score: 17
- Best player score: 23
- Position: #140 / 249
- Number of attempts: 4
Shuffle puzzle - 331 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: 14
- Position: #46 / 103
- Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10652 entries
A HAPPY NEW YEAR 2014 !
- Best score: 11
- Best player score: 11
- Position: #1030 / 3677
- Number of attempts: 2
attr_aligner - 3454 entries
Two attr keywords. Two separate indentations. Align the colons.
- Best score: 19
- Best player score: 19
- Position: #125 / 695
- Number of attempts: 12
Words in parens - 12868 entries
We should all ace this, right?
- Best score: 13
- Best player score: 15
- Position: #1558 / 3950
- Number of attempts: 3
ASCII-art Histogram - 320 entries
Create an ASCCI-art histogram for the given numbers. Make sure not to leave trailing whitespaces. Thanks to VimGolf I recently discovered a feature of Vim thAT blew my mind. I'm curious to see what real ninjas make of it ;-)
- Best score: 33
- Best player score: 41
- Position: #31 / 57
- Number of attempts: 5
Saving the hashes(#) - 2008 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: 21
- Position: #107 / 476
- Number of attempts: 6
Let's play some Ivmgolf - 1096 entries
Oops, I spelled that wrong.
- Best score: 7
- Best player score: 9
- Position: #294 / 442
- Number of attempts: 2
Exchanging Quotes - 824 entries
Sometimes you need to exchange a choice of quotes in some code.
- Best score: 30
- Best player score: 37
- Position: #133 / 227
- Number of attempts: 4
Switch function arguments - 2085 entries
How to switch two arguments of a function.
- Best score: 11
- Best player score: 11
- Position: #134 / 653
- Number of attempts: 3
Remove noise from HTTP log - 700 entries
This piece of log (from the year 2000) contains some irrelevant data. We only want to see the HTTP method and resource.
- Best score: 15
- Best player score: 16
- Position: #189 / 272
- Number of attempts: 2
switch variable - 5045 entries
how fast can you switch two variable ?
- Best score: 11
- Best player score: 11
- Position: #442 / 1742
- Number of attempts: 2
remove dupes from array - 1345 entries
given a random string that contains a ruby-esque array, make sure that there are no duplicate elements
- Best score: 17
- Best player score: 20
- Position: #136 / 333
- Number of attempts: 3
Ruby 1.9 hashes - 1225 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: 14
- Position: #240 / 402
- Number of attempts: 2
A Simple One - 1009 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: #439 / 648
- Number of attempts: 1
Reverse Simple Deletion - 834 entries
You did the simple deletion, now reverse it.
- Best score: 11
- Best player score: 11
- Position: #35 / 455
- Number of attempts: 5
Make Fancy Header - 1024 entries
Make the header text stand out with surrounding asterisks
- Best score: 15
- Best player score: 17
- Position: #194 / 340
- Number of attempts: 3