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

Well, swap the values...

  • Best score: 11
  • Best player score: 13
  • Position: #603 / 1241
  • Number of attempts: 5
V to the i - 4641 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1311 / 1857
  • Number of attempts: 3
Just the middle - 11141 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2721 / 4114
  • Number of attempts: 1
Vice versa - 7541 entries

Little role switching.

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

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 32
  • Position: #372 / 431
  • Number of attempts: 1
I forgot quotes - 15749 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3262 / 4117
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10538 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2793 / 3638
  • Number of attempts: 1
quotes inside quotes - 3030 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: #898 / 1045
  • Number of attempts: 1
The name of the game - 629 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 17
  • Position: #338 / 344
  • Number of attempts: 1
Switch function arguments - 1985 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 12
  • Position: #297 / 628
  • Number of attempts: 2
The meaning - 523 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #282 / 338
  • Number of attempts: 3
A Simple One - 937 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 / 618
  • Number of attempts: 2
The Cake is a Lie - 1215 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 11
  • Position: #431 / 491
  • Number of attempts: 1
Homer Simp12586
Twitter:

entered into 13 challenges

contributed 0 challenges