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

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

  • Best score: 12
  • Best player score: 12
  • Position: #267 / 1572
  • Number of attempts: 5
Just the middle - 11283 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 10
  • Position: #3607 / 4140
  • Number of attempts: 1
Array of characters - 135 entries

We all copy paste things off the internet, but the syntax doesn't look right. Fix it as fast as possible.

  • Best score: 33
  • Best player score: 55
  • Position: #40 / 41
  • Number of attempts: 1
VimGolfNight - 520 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #117 / 338
  • Number of attempts: 2
I forgot quotes - 15840 entries

Oops.

  • Best score: 10
  • Best player score: 17
  • Position: #2718 / 4133
  • Number of attempts: 1
learn vim in short time - 222 entries

so happy to learn vim.because vim is awesome

  • Best score: 8
  • Best player score: 8
  • Position: #6 / 153
  • Number of attempts: 2
120 Degrees - 457 entries

Rotate that triangle.

  • Best score: 14
  • Best player score: 21
  • Position: #79 / 142
  • Number of attempts: 3
Gray area - 712 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 12
  • Position: #37 / 264
  • Number of attempts: 4
Going underground.... - 315 entries

Simple reformatting: in this case changing from the format London underground supplies its customers with, to the format that Google Calendar likes...

  • Best score: 22
  • Best player score: 31
  • Position: #74 / 122
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10564 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 13
  • Position: #2485 / 3646
  • Number of attempts: 2
Words in parens - 12788 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 20
  • Position: #3168 / 3930
  • Number of attempts: 1
Hole-in-one - 985 entries

Lets take this golf thing literally.. Drive off the tee into the hole, and of course you don't strike the ball completely clean.

  • Best score: 15
  • Best player score: 24
  • Position: #269 / 300
  • Number of attempts: 2
Python: Lots of function arguments - 99 entries

The function definition is too long for one line. The modeline helps you with some typical Python indent settings.

  • Best score: 6
  • Best player score: 14
  • Position: #25 / 44
  • Number of attempts: 1
The name of the game - 638 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #149 / 350
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1531 entries

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

  • Best score: 8
  • Best player score: 13
  • Position: #292 / 431
  • Number of attempts: 2
replacing each line of a block selection - 2883 entries

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

  • Best score: 18
  • Best player score: 21
  • Position: #360 / 756
  • Number of attempts: 5
Switch function arguments - 2002 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 15
  • Position: #527 / 634
  • Number of attempts: 2
switch variable - 4993 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 17
  • Position: #1589 / 1722
  • Number of attempts: 1
Make it more readable - 1928 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 16
  • Position: #378 / 635
  • Number of attempts: 2
Increment, increment, increment.... - 606 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #255 / 385
  • Number of attempts: 2
Larry Boltovskoi
Twitter:

obsessed software engineer

entered into 20 challenges

contributed 0 challenges