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

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Position: #730 / 1294
  • Number of attempts: 3
Basic renumbering - 5737 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 24
  • Position: #1143 / 1281
  • Number of attempts: 1
Fiddle percentages into real numbers - 886 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: #221 / 297
  • Number of attempts: 3
Vice versa - 8021 entries

Little role switching.

  • Best score: 12
  • Best player score: 20
  • Position: #1886 / 2158
  • Number of attempts: 1
7th Birthday - 237 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: #78 / 80
  • Number of attempts: 1
Array transposition - 2481 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 28
  • Position: #343 / 461
  • Number of attempts: 1
VimGolfNight - 604 entries

Based on "The name of the game".

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

prepend a # infront of every line of the second method

  • Best score: 8
  • Best player score: 10
  • Position: #219 / 246
  • Number of attempts: 1
Gray area - 765 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 14
  • Position: #233 / 277
  • Number of attempts: 1
Switch function arguments - 2229 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 14
  • Position: #519 / 684
  • Number of attempts: 1
A Simple One - 1093 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 / 681
  • Number of attempts: 1
Petar Saulic
Twitter:

entered into 11 challenges

contributed 0 challenges