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

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

  • Best score: 12
  • Best player score: 12
  • Position: #359 / 1630
  • Number of attempts: 5
That hyphen - 2595 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 9
  • Position: #28 / 701
  • Number of attempts: 5
Basic renumbering - 5675 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 14
  • Position: #319 / 1268
  • Number of attempts: 10
I forgot quotes - 16014 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #9 / 4188
  • Number of attempts: 5
Where should I put the Newline? - 881 entries

Help me put the newline.

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

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #522 / 3687
  • Number of attempts: 3
Words in parens - 12966 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #465 / 3968
  • Number of attempts: 8
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: 20
  • Position: #28 / 480
  • Number of attempts: 8
Append semicolon after expressions - 1056 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 11
  • Position: #82 / 419
  • Number of attempts: 3
switch variable - 5079 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #333 / 1749
  • Number of attempts: 4
Numbering a List - 1935 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 18
  • Position: #141 / 654
  • Number of attempts: 5
The Cake is a Lie - 1359 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 9
  • Position: #196 / 530
  • Number of attempts: 3
Simple text editing with Vim - 12935 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #302 / 3725
  • Number of attempts: 7
Hrvoje Kopinc
Twitter:

entered into 13 challenges

contributed 0 challenges