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

Search and Replace 0 - 5045 entries

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

  • Best score: 12
  • Best player score: 16
  • Position: #1166 / 1644
  • Number of attempts: 1
Python Hello World! Reformatting - 1011 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: 44
  • Position: #225 / 387
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10721 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 13
  • Position: #2565 / 3704
  • Number of attempts: 1
Words in parens - 13005 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 23
  • Position: #3658 / 3979
  • Number of attempts: 1
Recursively Palindrome - 267 entries

Note that there are 2^6-1 characters.

  • Best score: 21
  • Best player score: 42
  • Position: #70 / 75
  • Number of attempts: 2
Sort the cardinal numbers - 315 entries

Maybe a simple challenge.

  • Best score: 12
  • Best player score: 14
  • Position: #82 / 149
  • Number of attempts: 2
Complete the hex array data - 197 entries

Do not use external tools(e.g. tac, seq) [My interpretation of Rule #7]

  • Best score: 23
  • Best player score: 49
  • Position: #64 / 74
  • Number of attempts: 1
Case preserving word replacement - 463 entries

Half way through my project, my people turned into dogs. Now I have to change everything in my source.

  • Best score: 19
  • Best player score: 22
  • Position: #119 / 182
  • Number of attempts: 2
Rotating Philosophers Problem - 410 entries

Can you help the philosophers find a good place to sit before they get five forks and spaghetti?

  • Best score: 29
  • Best player score: 30
  • Position: #62 / 166
  • Number of attempts: 2
Numbering a List - 1941 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 19
  • Position: #206 / 657
  • Number of attempts: 3
Ruby 1.9 hashes - 1286 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: 15
  • Position: #265 / 414
  • Number of attempts: 1
A Simple One - 1070 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: #228 / 673
  • Number of attempts: 1
Whitespace, empty lines and tabs - 3949 entries

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

  • Best score: 16
  • Best player score: 27
  • Position: #471 / 841
  • Number of attempts: 1
Simple text editing with Vim - 13425 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #893 / 3848
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7514 entries

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

  • Best score: 7
  • Best player score: 33
  • Position: #194 / 1850
  • Number of attempts: 4
こばばー
Twitter:

entered into 15 challenges

contributed 0 challenges