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

Saving the hashes(#) - 1826 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 - 4350 entries

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

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 3
Where should I put the Newline? - 820 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 2
Just the middle - 9988 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
Words in parens - 11693 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 4
I forgot quotes - 13480 entries

Oops.

  • Best score: 10
  • Best player score: 20
  • Number of attempts: 1
quotes inside quotes - 2885 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
Do you demand a shrubbery? - 1035 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 32
  • Number of attempts: 1
Two become one - 691 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 ! - 9913 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 5594 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