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: #273 / 1630
  • Number of attempts: 5
VimGolfNight - 566 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #131 / 348
  • Number of attempts: 2
Do you demand a shrubbery? - 1158 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 18
  • Position: #124 / 300
  • Number of attempts: 2
Don't know what this is - 2024 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 14
  • Position: #284 / 586
  • Number of attempts: 3
Vim tetris - 364 entries

Vim can play tetris too!

  • Best score: 21
  • Best player score: 23
  • Position: #34 / 103
  • Number of attempts: 2
Mess in revision history - 1184 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 29
  • Position: #183 / 250
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10682 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1682 / 3689
  • Number of attempts: 3
Words in parens - 12967 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2014 / 3969
  • Number of attempts: 4
The name of the game - 671 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #159 / 362
  • Number of attempts: 3
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: 12
  • Position: #287 / 446
  • Number of attempts: 4
Vertical Limit - 2552 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 25
  • Position: #343 / 757
  • 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: 20
  • Position: #260 / 778
  • Number of attempts: 6
switch variable - 5079 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1111 / 1749
  • 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: 18
  • Position: #524 / 652
  • Number of attempts: 2
Change the content of a string - 1593 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #288 / 594
  • Number of attempts: 1
Simple text editing with Vim - 12996 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1176 / 3739
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 7157 entries

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

  • Best score: 28
  • Best player score: 43
  • Position: #1038 / 1755
  • Number of attempts: 2
John Gray Cole
Twitter:

entered into 17 challenges

contributed 0 challenges