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

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Position: #729 / 1290
  • Number of attempts: 3
Basic renumbering - 5731 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 24
  • Position: #1139 / 1277
  • Number of attempts: 1
Fiddle percentages into real numbers - 884 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: #220 / 296
  • Number of attempts: 3
Vice versa - 7997 entries

Little role switching.

  • Best score: 12
  • Best player score: 20
  • Position: #1881 / 2152
  • Number of attempts: 1
7th Birthday - 220 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: #75 / 77
  • Number of attempts: 1
Array transposition - 2472 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 28
  • Position: #342 / 458
  • Number of attempts: 1
VimGolfNight - 581 entries

Based on "The name of the game".

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

prepend a # infront of every line of the second method

  • Best score: 8
  • Best player score: 10
  • Position: #216 / 242
  • Number of attempts: 1
Gray area - 754 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 14
  • Position: #230 / 273
  • Number of attempts: 1
Switch function arguments - 2195 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 14
  • Position: #514 / 678
  • Number of attempts: 1
A Simple One - 1076 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 / 676
  • Number of attempts: 1
Petar Saulic
Twitter:

entered into 11 challenges

contributed 0 challenges