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

Swap values - 4661 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Position: #725 / 1282
  • Number of attempts: 3
Basic renumbering - 5707 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 24
  • Position: #1136 / 1274
  • Number of attempts: 1
Fiddle percentages into real numbers - 873 entries

Get rid of the '%' symbols and shift the decimal place. This is the easier version - all the columns line up.

  • Best score: 13
  • Best player score: 17
  • Position: #218 / 294
  • Number of attempts: 3
Vice versa - 7974 entries

Little role switching.

  • Best score: 12
  • Best player score: 20
  • Position: #1877 / 2146
  • Number of attempts: 1
7th Birthday - 210 entries

We have a bunch of numbers written from 0 to 9 in the order present in the text input file. The task is to create 7 by replacing the numbers with dashes.

  • Best score: 19
  • Best player score: 31
  • Position: #74 / 76
  • Number of attempts: 1
Array transposition - 2436 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 28
  • Position: #339 / 452
  • Number of attempts: 1
VimGolfNight - 575 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #253 / 352
  • Number of attempts: 1
Mute the second method of this script - 455 entries

prepend a # infront of every line of the second method

  • Best score: 8
  • Best player score: 10
  • Position: #214 / 239
  • Number of attempts: 1
Gray area - 749 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 14
  • Position: #229 / 272
  • Number of attempts: 1
Switch function arguments - 2182 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 14
  • Position: #512 / 674
  • Number of attempts: 1
A Simple One - 1067 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: #457 / 671
  • Number of attempts: 1
Petar Saulic
Twitter:

entered into 11 challenges

contributed 0 challenges