Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put [challenge ID]

Played Challenges

Extract argument from function - 2218 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 17
  • Position: #535 / 729
  • Number of attempts: 1
Search and Replace 0 - 4676 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 18
  • Position: #1284 / 1549
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10538 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2614 / 3638
  • Number of attempts: 1
Enumerate words - 235 entries

Enumerate the unique words in order.

  • Best score: 23
  • Best player score: 27
  • Position: #62 / 85
  • Number of attempts: 2
NATO phonetic alphabet - 479 entries

Transform the series of words into a list.

  • Best score: 19
  • Best player score: 23
  • Position: #124 / 182
  • Number of attempts: 1
The Quick Brown Fox Jumps Over The Lazy Vim - 388 entries

Someone has vandalized this text file and replaced the beginning character of one word in each line with a Big "X." Please remove the big X's, and fix each line to read "The Quick Brown Fox Jumps Over The Lazy Dog."

  • Best score: 8
  • Best player score: 10
  • Position: #66 / 180
  • Number of attempts: 2
The name of the game - 629 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #169 / 344
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1510 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: #194 / 424
  • Number of attempts: 1
Let's play some Ivmgolf - 1015 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #240 / 420
  • Number of attempts: 2
Vertical Limit - 2369 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 27
  • Position: #507 / 717
  • Number of attempts: 2
replacing each line of a block selection - 2800 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 23
  • Position: #446 / 735
  • Number of attempts: 1
Switch function arguments - 1982 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 14
  • Position: #451 / 627
  • Number of attempts: 1
Append semicolon after expressions - 953 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 13
  • Position: #307 / 387
  • Number of attempts: 1
Reverse and double space - 448 entries

Reverse the order of the given lines and double space everything

  • Best score: 14
  • Best player score: 17
  • Position: #142 / 184
  • Number of attempts: 1
Remove noise from HTTP log - 663 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: 17
  • Position: #212 / 261
  • Number of attempts: 1
switch variable - 4937 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Position: #1326 / 1707
  • Number of attempts: 1
The meaning - 522 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #227 / 337
  • Number of attempts: 1
Make it more readable - 1897 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 17
  • Position: #444 / 624
  • Number of attempts: 1
Shebangs for all - 1777 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: 16
  • Position: #300 / 468
  • Number of attempts: 3
A Simple One - 934 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: #381 / 617
  • Number of attempts: 1
Ruby 1.9 compat - 597 entries

Remember when Ruby supported `when <expr> :`? Well, it doesn't in 1.9, so let's make sure we use `then`, without ruining our lovely new hash syntax!

  • Best score: 14
  • Best player score: 15
  • Position: #105 / 226
  • Number of attempts: 3
Reverse Simple Deletion - 772 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #286 / 432
  • Number of attempts: 1
Make Fancy Header - 978 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 16
  • Position: #89 / 329
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 6033 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 39
  • Position: #670 / 1486
  • Number of attempts: 1
Kyle Travis
Twitter:

Typing frantically until bright colors appear. http://t.co/T0OvvlK9DP

entered into 24 challenges

contributed 0 challenges