Played Challenges
vim = 22 / 7 - 475 entries
pi square vim
- Best score: 20
- Best player score: 23
- Position: #62 / 135
- Number of attempts: 2
Search and Replace 0 - 4989 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 12
- Best player score: 12
- Position: #230 / 1624
- Number of attempts: 2
Swap assigned value - 647 entries
Simple problem but looking for interesting solutions.
- Best score: 10
- Best player score: 11
- Position: #146 / 254
- Number of attempts: 1
VimGolfNight - 560 entries
Based on "The name of the game".
- Best score: 12
- Best player score: 12
- Position: #47 / 347
- Number of attempts: 1
Vim tetris - 353 entries
Vim can play tetris too!
- Best score: 21
- Best player score: 23
- Position: #36 / 102
- Number of attempts: 2
Write Setters and Getters for PHP - 88 entries
Just simple automation of writing Setters and Getters like Doctrine might use.
- Best score: 102
- Best player score: 122
- Position: #11 / 33
- Number of attempts: 1
Going underground.... - 356 entries
Simple reformatting: in this case changing from the format London underground supplies its customers with, to the format that Google Calendar likes...
- Best score: 22
- Best player score: 33
- Position: #90 / 128
- Number of attempts: 2
Split the words - 368 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: 42
- Position: #94 / 111
- Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10663 entries
A HAPPY NEW YEAR 2014 !
- Best score: 11
- Best player score: 12
- Position: #1660 / 3683
- Number of attempts: 1
attr_aligner - 3511 entries
Two attr keywords. Two separate indentations. Align the colons.
- Best score: 19
- Best player score: 26
- Position: #255 / 698
- Number of attempts: 2
Counting in binary - 526 entries
"a" represents 0; "A" represents 1. Start from zero and count to 15.
- Best score: 16
- Best player score: 43
- Position: #85 / 117
- Number of attempts: 4
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: 11
- Position: #179 / 518
- Number of attempts: 2
quotes inside quotes - 3159 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: 14
- Position: #5 / 1078
- Number of attempts: 3
Top X - 212 entries
The End File is the Top 10 Vimgolf Leaderboard at June 29, 2013. This is a second version, with a great contribution of @udioica. X is ten in Roman,a numeric system in ancient Rome
- Best score: 18
- Best player score: 24
- Position: #23 / 71
- Number of attempts: 2
Number an outline - 280 entries
The indent and words are right, but the numbers are all wrong.
- Best score: 25
- Best player score: 65
- Position: #57 / 78
- Number of attempts: 2
Words in parens - 12930 entries
We should all ace this, right?
- Best score: 13
- Best player score: 14
- Position: #55 / 3962
- Number of attempts: 7
Pairs of numbers - 363 entries
Line 1 represents x, line 2 y-data. Bring the corresponding pairs in the form "[x,y]\n"
- Best score: 26
- Best player score: 27
- Position: #16 / 136
- Number of attempts: 3
Assign list - 192 entries
Assign list elements to matrix
- Best score: 30
- Best player score: 48
- Position: #36 / 61
- Number of attempts: 1
Draw the Go board - 149 entries
which is a 19×19 lines board. Here we use ascii characters only for simplicity. See diff file to get a sense. (See also http://en.wikipedia.org/wiki/Go_(game))
- Best score: 50
- Best player score: 65
- Position: #18 / 51
- Number of attempts: 4
paste indent correction - JS - 112 entries
You copy some javascript code from a website and paste it into vim, it does not look good!
- Best score: 16
- Best player score: 18
- Position: #49 / 59
- Number of attempts: 1
Hole-in-one - 1018 entries
Lets take this golf thing literally.. Drive off the tee into the hole, and of course you don't strike the ball completely clean.
- Best score: 15
- Best player score: 18
- Position: #117 / 304
- Number of attempts: 3
Delete unwanted lines - 411 entries
Delete all lines which does not end in "o.."
- Best score: 9
- Best player score: 9
- Position: #29 / 229
- 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: 6
- Position: #143 / 161
- Number of attempts: 1
Minimalist Limerick - 520 entries
Reproduce this lovely poem.
- Best score: 30
- Best player score: 38
- Position: #112 / 174
- Number of attempts: 2
Enumerate words - 254 entries
Enumerate the unique words in order.
- Best score: 23
- Best player score: 26
- Position: #47 / 91
- Number of attempts: 2
abcd > a b c d - 291 entries
transform the single spaces into 4 spaces repeat for each line
- Best score: 15
- Best player score: 15
- Position: #93 / 222
- Number of attempts: 1
The name of the game - 665 entries
End up with the name of the game.
- Best score: 11
- Best player score: 12
- Position: #303 / 360
- Number of attempts: 1
lamb had a little Mary - 609 entries
"Mary" and "lamb" are swapped. Unswap them. Fast as you can.
- Best score: 16
- Best player score: 32
- Position: #61 / 168
- Number of attempts: 3
SFD-ROC: vimvimvim - 1606 entries
Oh no, this line is longer than 80 chars... put each 'vim' on a new line.
- Best score: 8
- Best player score: 9
- Position: #185 / 446
- Number of attempts: 2
Stairs Indenting - 473 entries
Indent each line with <line number> whitespaces.
- Best score: 12
- Best player score: 19
- Position: #177 / 197
- Number of attempts: 1
Saving the hashes(#) - 2063 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: 25
- Position: #152 / 480
- Number of attempts: 4
you're stuck on jQuery < 1.7 - 362 entries
replace calls to jQuery 1.7+'s `on` with calls to pre 1.7 `bind`
- Best score: 25
- Best player score: 28
- Position: #47 / 113
- Number of attempts: 2
Vertical Limit - 2538 entries
transform a succession of one word lines to a an array of strings
- Best score: 21
- Best player score: 25
- Position: #329 / 754
- Number of attempts: 3
Exchanging Quotes - 858 entries
Sometimes you need to exchange a choice of quotes in some code.
- Best score: 30
- Best player score: 35
- Position: #99 / 230
- Number of attempts: 1
replacing each line of a block selection - 2999 entries
replace each line's ../assets/js with /javascripts
- Best score: 18
- Best player score: 20
- Position: #256 / 777
- Number of attempts: 4
Switch function arguments - 2139 entries
How to switch two arguments of a function.
- Best score: 11
- Best player score: 12
- Position: #239 / 663
- Number of attempts: 1
Append semicolon after expressions - 1056 entries
Some lines need the semicolon, some don't.
- Best score: 11
- Best player score: 12
- Position: #190 / 419
- Number of attempts: 1
Remove noise from HTTP log - 717 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: 15
- Position: #69 / 273
- Number of attempts: 1
Remove semicolons after expressions - 654 entries
A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.
- Best score: 6
- Best player score: 8
- Position: #205 / 263
- Number of attempts: 2
switch variable - 5071 entries
how fast can you switch two variable ?
- Best score: 11
- Best player score: 12
- Position: #747 / 1748
- Number of attempts: 1
The meaning - 575 entries
Numbers are fun!
- Best score: 5
- Best player score: 5
- Position: #192 / 363
- Number of attempts: 1
Shebangs for all - 1998 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: 12
- Position: #128 / 515
- 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: 113
- Position: #31 / 101
- Number of attempts: 2
The Cake is a Lie - 1344 entries
Correct the capitalization of each word
- Best score: 9
- Best player score: 10
- Position: #345 / 526
- Number of attempts: 1
Change the content of a string - 1575 entries
This docstring is a complete lie. Fix it.
- Best score: 22
- Best player score: 25
- Position: #369 / 587
- Number of attempts: 1
Reconstruct the Sentence - 1498 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: 21
- Position: #210 / 411
- Number of attempts: 5
Flodder-challenge - 1259 entries
Replace the text the most efficient and win!
- Best score: 27
- Best player score: 33
- Position: #113 / 334
- Number of attempts: 1
Simple text editing with Vim - 12787 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 14
- Position: #1089 / 3688
- Number of attempts: 2
Reformat/Refactor a Golfer Class - 6962 entries
A simple case of removing unneeded code and fixing broken indentation.
- Best score: 28
- Best player score: 39
- Position: #710 / 1701
- Number of attempts: 1
Nathan
Twitter: @NathanHarperoni
I was peer pressured into making this account.