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

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

  • Best score: 12
  • Best player score: 27
  • Position: #1592 / 1629
  • Number of attempts: 1
I forgot quotes - 16014 entries

Oops.

  • Best score: 10
  • Best player score: 19
  • Position: #3409 / 4188
  • Number of attempts: 2
Two become one - 713 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: #207 / 208
  • Number of attempts: 1
Where should I put the Newline? - 881 entries

Help me put the newline.

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

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2623 / 3687
  • Number of attempts: 2
Words in parens - 12957 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 28
  • Position: #3855 / 3967
  • Number of attempts: 4
The name of the game - 668 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 12
  • Position: #309 / 361
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1606 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: #404 / 446
  • Number of attempts: 3
Saving the hashes(#) - 2063 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: #469 / 480
  • Number of attempts: 1
replacing each line of a block selection - 3001 entries

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

  • Best score: 18
  • Best player score: 29
  • Position: #628 / 778
  • Number of attempts: 2
Make it more readable - 2009 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 21
  • Position: #608 / 652
  • Number of attempts: 2
Simple text editing with Vim - 12925 entries

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

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

Software Engineer at Springleaf, vim user, Linux fanboy

entered into 12 challenges

contributed 0 challenges