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

Well, swap the values...

  • Best score: 11
  • Best player score: 13
  • Position: #625 / 1293
  • Number of attempts: 5
V to the i - 4883 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 8
  • Position: #1338 / 1914
  • Number of attempts: 3
Just the middle - 11616 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2763 / 4255
  • Number of attempts: 1
Vice versa - 8019 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #417 / 2157
  • Number of attempts: 3
Array transposition - 2481 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 32
  • Position: #395 / 461
  • Number of attempts: 1
I forgot quotes - 16237 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3344 / 4224
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10755 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2855 / 3715
  • Number of attempts: 1
quotes inside quotes - 3202 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 17
  • Position: #929 / 1093
  • Number of attempts: 1
The name of the game - 696 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 17
  • Position: #361 / 369
  • Number of attempts: 1
Switch function arguments - 2229 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 12
  • Position: #315 / 684
  • Number of attempts: 2
The meaning - 588 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #282 / 368
  • Number of attempts: 3
A Simple One - 1088 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: #480 / 679
  • Number of attempts: 2
The Cake is a Lie - 1416 entries

Correct the capitalization of each word

  • Best score: 8
  • Best player score: 11
  • Position: #466 / 542
  • Number of attempts: 1
Homer Simp12586
Twitter:

entered into 13 challenges

contributed 0 challenges