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

I forgot quotes - 11996 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Number of attempts: 1
A Simple One - 845 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
  • Number of attempts: 2
Vice versa - 6001 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 3
Swap values - 3589 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 13
  • Number of attempts: 5
V to the i - 3954 entries

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

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 3
The Cake is a Lie - 1126 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 11
  • Number of attempts: 1
Just the middle - 9346 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 9560 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 1
quotes inside quotes - 2799 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
  • Number of attempts: 1
The meaning - 502 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 3
Switch function arguments - 1840 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 2
Array transposition - 1638 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 32
  • Number of attempts: 1
The name of the game - 582 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 17
  • Number of attempts: 1
Homer Simp12586
Twitter:

entered into 13 challenges

contributed 0 challenges