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 - 5124 entries

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

  • Best score: 12
  • Best player score: 16
  • Position: #1185 / 1670
  • Number of attempts: 1
Python Hello World! Reformatting - 1022 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: #226 / 391
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10749 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 13
  • Position: #2570 / 3712
  • Number of attempts: 1
Words in parens - 13033 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 23
  • Position: #3665 / 3987
  • Number of attempts: 1
Recursively Palindrome - 290 entries

Note that there are 2^6-1 characters.

  • Best score: 21
  • Best player score: 42
  • Position: #71 / 76
  • Number of attempts: 2
Sort the cardinal numbers - 326 entries

Maybe a simple challenge.

  • Best score: 12
  • Best player score: 14
  • Position: #83 / 150
  • Number of attempts: 2
Complete the hex array data - 211 entries

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

  • Best score: 23
  • Best player score: 49
  • Position: #65 / 75
  • Number of attempts: 1
Case preserving word replacement - 476 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: #121 / 185
  • Number of attempts: 2
Rotating Philosophers Problem - 420 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: #63 / 168
  • Number of attempts: 2
Numbering a List - 1944 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 19
  • Position: #208 / 659
  • Number of attempts: 3
Ruby 1.9 hashes - 1293 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: #267 / 417
  • Number of attempts: 1
A Simple One - 1079 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 / 677
  • Number of attempts: 1
Whitespace, empty lines and tabs - 4025 entries

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

  • Best score: 16
  • Best player score: 27
  • Position: #480 / 857
  • Number of attempts: 1
Simple text editing with Vim - 13576 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #903 / 3892
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7649 entries

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

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

entered into 15 challenges

contributed 0 challenges