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

Just the middle - 11062 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
I forgot quotes - 15602 entries

Oops.

  • Best score: 10
  • Best player score: 20
  • Number of attempts: 1
Do you demand a shrubbery? - 1079 entries

Use :redir and crush the emacsgolfers.

  • Best score: 8
  • Best player score: 32
  • Number of attempts: 1
Where should I put the Newline? - 830 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 2
Two become one - 692 entries

We have two c arrays and want to make one two dimensional out of it. Can we do that?

  • Best score: 25
  • Best player score: 35
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10503 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 3
quotes inside quotes - 2995 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: 24
  • Number of attempts: 1
Words in parens - 12671 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 4
Saving the hashes(#) - 1920 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 43
  • Number of attempts: 1
Search and Replace 0 - 4508 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 5779 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 42
  • Number of attempts: 1
Naoki Masuko
Twitter:

囲碁プログラムを製作しています.まだまだ勉強中ですが.

entered into 11 challenges

contributed 0 challenges