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

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

  • Best score: 12
  • Best player score: 34
  • Position: #1606 / 1630
  • Number of attempts: 1
Python Hello World! Reformatting - 1000 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: 83
  • Position: #380 / 382
  • Number of attempts: 1
switch variable - 5079 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 25
  • Position: #1703 / 1749
  • Number of attempts: 1
The meaning - 575 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #45 / 363
  • Number of attempts: 1
remove dupes from array - 1358 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 66
  • Position: #332 / 336
  • Number of attempts: 1
The holy-grail may help - 381 entries

Can you find it in less than 20 strokes, Arthur?

  • Best score: 16
  • Best player score: 23
  • Position: #195 / 213
  • Number of attempts: 1
A Simple One - 1057 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: #261 / 667
  • Number of attempts: 1
The Cake is a Lie - 1365 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 11
  • Position: #428 / 532
  • Number of attempts: 1
Almost encrypted - 204 entries

Convert the first paragraph to be even less readable.

  • Best score: 5
  • Best player score: 5
  • Position: #83 / 146
  • Number of attempts: 2
Reformat some Python - 622 entries

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 51
  • Position: #184 / 238
  • Number of attempts: 2
Reformat a C golf submission - 612 entries

Take this C golf submission (for the "tiny but standards-compliant Hello World program" category, naturally), and turn it into formatted C code.

  • Best score: 22
  • Best player score: 50
  • Position: #202 / 209
  • Number of attempts: 1
Change the content of a string - 1600 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 44
  • Position: #585 / 596
  • Number of attempts: 1
Timothy Hahn
Twitter:

entered into 12 challenges

contributed 0 challenges