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

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Position: #724 / 1274
  • Number of attempts: 3
Basic renumbering - 5683 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 24
  • Position: #1131 / 1269
  • Number of attempts: 1
Fiddle percentages into real numbers - 869 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: #217 / 293
  • Number of attempts: 3
Vice versa - 7953 entries

Little role switching.

  • Best score: 12
  • Best player score: 20
  • Position: #1871 / 2140
  • Number of attempts: 1
7th Birthday - 202 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: #73 / 75
  • Number of attempts: 1
Array transposition - 2425 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 28
  • Position: #337 / 449
  • Number of attempts: 1
VimGolfNight - 570 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #253 / 350
  • 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 - 747 entries

It's a golf metaphor or something.

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

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 14
  • Position: #507 / 666
  • 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: #457 / 667
  • Number of attempts: 1
Petar Saulic
Twitter:

entered into 11 challenges

contributed 0 challenges