Played Challenges
vim = 22 / 7 - 447 entries
pi square vim
- Best score: 20
- Best player score: 23
- Position: #60 / 131
- Number of attempts: 2
Search and Replace 0 - 4771 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 12
- Best player score: 12
- Position: #230 / 1581
- Number of attempts: 2
Swap assigned value - 600 entries
Simple problem but looking for interesting solutions.
- Best score: 10
- Best player score: 11
- Position: #140 / 244
- Number of attempts: 1
VimGolfNight - 524 entries
Based on "The name of the game".
- Best score: 12
- Best player score: 12
- Position: #47 / 339
- Number of attempts: 1
Vim tetris - 352 entries
Vim can play tetris too!
- Best score: 21
- Best player score: 23
- Position: #35 / 101
- Number of attempts: 2
Write Setters and Getters for PHP - 86 entries
Just simple automation of writing Setters and Getters like Doctrine might use.
- Best score: 102
- Best player score: 122
- Position: #10 / 32
- Number of attempts: 1
Going underground.... - 327 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: #86 / 123
- Number of attempts: 2
Split the words - 356 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: #91 / 108
- Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10607 entries
A HAPPY NEW YEAR 2014 !
- Best score: 11
- Best player score: 12
- Position: #1649 / 3659
- Number of attempts: 1
attr_aligner - 3429 entries
Two attr keywords. Two separate indentations. Align the colons.
- Best score: 19
- Best player score: 26
- Position: #249 / 690
- Number of attempts: 2
Counting in binary - 447 entries
"a" represents 0; "A" represents 1. Start from zero and count to 15.
- Best score: 16
- Best player score: 43
- Position: #80 / 112
- Number of attempts: 4
Letter case trickery - 1588 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: #176 / 509
- Number of attempts: 2
quotes inside quotes - 3105 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 / 1066
- Number of attempts: 3
Top X - 191 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: #21 / 69
- Number of attempts: 2
Number an outline - 246 entries
The indent and words are right, but the numbers are all wrong.
- Best score: 25
- Best player score: 65
- Position: #54 / 74
- Number of attempts: 2
Words in parens - 12824 entries
We should all ace this, right?
- Best score: 13
- Best player score: 14
- Position: #49 / 3939
- Number of attempts: 7
Pairs of numbers - 349 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: #15 / 132
- Number of attempts: 3
Assign list - 169 entries
Assign list elements to matrix
- Best score: 30
- Best player score: 48
- Position: #34 / 59
- Number of attempts: 1
Draw the Go board - 140 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: #17 / 48
- Number of attempts: 4
paste indent correction - JS - 102 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: #47 / 57
- Number of attempts: 1
Hole-in-one - 1012 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: #116 / 302
- Number of attempts: 3
Delete unwanted lines - 392 entries
Delete all lines which does not end in "o.."
- Best score: 9
- Best player score: 9
- Position: #29 / 224
- Number of attempts: 1
Word frequency alignment - 273 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: #138 / 156
- Number of attempts: 1
Minimalist Limerick - 514 entries
Reproduce this lovely poem.
- Best score: 31
- Best player score: 38
- Position: #111 / 170
- Number of attempts: 2
Enumerate words - 242 entries
Enumerate the unique words in order.
- Best score: 23
- Best player score: 26
- Position: #45 / 87
- Number of attempts: 2
abcd > a b c d - 279 entries
transform the single spaces into 4 spaces repeat for each line
- Best score: 15
- Best player score: 15
- Position: #93 / 217
- Number of attempts: 1
The name of the game - 643 entries
End up with the name of the game.
- Best score: 11
- Best player score: 12
- Position: #298 / 353
- Number of attempts: 1
lamb had a little Mary - 570 entries
"Mary" and "lamb" are swapped. Unswap them. Fast as you can.
- Best score: 16
- Best player score: 32
- Position: #59 / 160
- Number of attempts: 3
SFD-ROC: vimvimvim - 1550 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: #179 / 435
- Number of attempts: 2
Stairs Indenting - 442 entries
Indent each line with <line number> whitespaces.
- Best score: 12
- Best player score: 19
- Position: #173 / 191
- Number of attempts: 1
Saving the hashes(#) - 1978 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: #149 / 471
- Number of attempts: 4
you're stuck on jQuery < 1.7 - 335 entries
replace calls to jQuery 1.7+'s `on` with calls to pre 1.7 `bind`
- Best score: 25
- Best player score: 28
- Position: #45 / 110
- Number of attempts: 2
Vertical Limit - 2409 entries
transform a succession of one word lines to a an array of strings
- Best score: 21
- Best player score: 25
- Position: #316 / 730
- Number of attempts: 3
Exchanging Quotes - 801 entries
Sometimes you need to exchange a choice of quotes in some code.
- Best score: 30
- Best player score: 35
- Position: #95 / 221
- Number of attempts: 1
replacing each line of a block selection - 2912 entries
replace each line's ../assets/js with /javascripts
- Best score: 18
- Best player score: 20
- Position: #248 / 761
- Number of attempts: 4
Switch function arguments - 2035 entries
How to switch two arguments of a function.
- Best score: 11
- Best player score: 12
- Position: #229 / 641
- Number of attempts: 1
Append semicolon after expressions - 995 entries
Some lines need the semicolon, some don't.
- Best score: 11
- Best player score: 12
- Position: #183 / 399
- Number of attempts: 1
Remove noise from HTTP log - 677 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 / 267
- Number of attempts: 1
Remove semicolons after expressions - 607 entries
A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.
- Best score: 6
- Best player score: 8
- Position: #197 / 254
- Number of attempts: 2
switch variable - 5016 entries
how fast can you switch two variable ?
- Best score: 11
- Best player score: 12
- Position: #740 / 1729
- Number of attempts: 1
The meaning - 548 entries
Numbers are fun!
- Best score: 5
- Best player score: 5
- Position: #192 / 351
- Number of attempts: 1
Shebangs for all - 1860 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: #122 / 488
- Number of attempts: 3
Turn this csv list into queries - 203 entries
Transform each line of this csv file into a MySQL-ready INSERT query.
- Best score: 98
- Best player score: 113
- Position: #28 / 94
- Number of attempts: 2
The Cake is a Lie - 1278 entries
Correct the capitalization of each word
- Best score: 9
- Best player score: 10
- Position: #336 / 509
- Number of attempts: 1
Change the content of a string - 1442 entries
This docstring is a complete lie. Fix it.
- Best score: 22
- Best player score: 25
- Position: #342 / 546
- Number of attempts: 1
Reconstruct the Sentence - 1281 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: #192 / 367
- Number of attempts: 5
Flodder-challenge - 1038 entries
Replace the text the most efficient and win!
- Best score: 27
- Best player score: 33
- Position: #99 / 298
- Number of attempts: 1
Simple text editing with Vim - 12050 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 14
- Position: #1050 / 3530
- Number of attempts: 2
Reformat/Refactor a Golfer Class - 6374 entries
A simple case of removing unneeded code and fixing broken indentation.
- Best score: 32
- Best player score: 39
- Position: #674 / 1573
- Number of attempts: 1