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

Sort the VimGolf challenges by popularity - 377 entries

"Sort by popularity" is a good order to play the challenges. Not perfect, but you could do a lot worse. ;) Input is a sample copy-pasted from vimgolf.com. Some of the challenge names have digits that will get in your way, so read ":help :sort" for hints on sorting with a regex. When you're done, try your solution on the full list!

  • Best score: 15
  • Best player score: 15
  • Position: #5 / 112
  • Number of attempts: 4
Words in parens - 13058 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #307 / 3993
  • Number of attempts: 1
Hole-in-one - 1041 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: 21
  • Position: #209 / 308
  • Number of attempts: 2
abcd > a b c d - 310 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 20
  • Position: #229 / 232
  • Number of attempts: 1
A simple change - 486 entries

Just change the numbers in the most efficient way ...

  • Best score: 12
  • Best player score: 14
  • Position: #74 / 200
  • Number of attempts: 1
Extract text from xml - 150 entries

Extract text from xml file (ignoring commented out elements) and create a one line regex.

  • Best score: 28
  • Best player score: 46
  • Position: #39 / 51
  • Number of attempts: 2
Vertical Limit - 2641 entries

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

  • Best score: 21
  • Best player score: 23
  • Position: #207 / 780
  • Number of attempts: 7
replacing each line of a block selection - 3069 entries

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

  • Best score: 18
  • Best player score: 22
  • Position: #430 / 790
  • Number of attempts: 5
un-C-escape string - 63 entries

Convert escape sequences to characters

  • Best score: 12
  • Best player score: 12
  • Position: #15 / 55
  • Number of attempts: 2
switch variable - 5131 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #717 / 1766
  • Number of attempts: 3
The meaning - 589 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #34 / 369
  • Number of attempts: 2
Ugly spreadsheet copy/paste to CSV - 1046 entries

convert an ugly spreadsheet copy/paste into a CSV format.

  • Best score: 19
  • Best player score: 44
  • Position: #136 / 199
  • Number of attempts: 6
Replacing some words - 445 entries

How fast could it be?

  • Best score: 17
  • Best player score: 25
  • Position: #99 / 152
  • Number of attempts: 5
Make it more readable - 2041 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 16
  • Position: #359 / 659
  • Number of attempts: 2
Whitespace, empty lines and tabs - 4070 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 34
  • Position: #710 / 868
  • Number of attempts: 1
Simple text editing with Vim - 13667 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 16
  • Position: #2287 / 3914
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 7723 entries

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

  • Best score: 7
  • Best player score: 37
  • Position: #554 / 1897
  • Number of attempts: 3
jDeveloper
Twitter:

entered into 17 challenges

contributed 0 challenges