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

Search and Replace 0 - 4651 entries

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

  • Best score: 12
  • Best player score: 27
  • Position: #1505 / 1541
  • Number of attempts: 1
I forgot quotes - 15728 entries

Oops.

  • Best score: 10
  • Best player score: 19
  • Position: #3347 / 4114
  • Number of attempts: 2
Two become one - 703 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: 69
  • Position: #201 / 202
  • Number of attempts: 1
Where should I put the Newline? - 842 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 7
  • Position: #23 / 421
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10533 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2578 / 3637
  • Number of attempts: 2
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 28
  • Position: #3809 / 3919
  • Number of attempts: 4
The name of the game - 627 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 12
  • Position: #293 / 343
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1508 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 15
  • Position: #388 / 424
  • Number of attempts: 3
Saving the hashes(#) - 1961 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: 49
  • Position: #455 / 466
  • Number of attempts: 1
replacing each line of a block selection - 2791 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 29
  • Position: #596 / 732
  • Number of attempts: 2
Make it more readable - 1891 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 21
  • Position: #583 / 622
  • Number of attempts: 2
Simple text editing with Vim - 11620 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 32
  • Position: #3181 / 3409
  • Number of attempts: 1
Alexander Bandukwala
Twitter:

Software Engineer at Springleaf, vim user, Linux fanboy

entered into 12 challenges

contributed 0 challenges