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

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

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

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 10
  • Position: #3697 / 4261
  • Number of attempts: 1
Array of characters - 198 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: #47 / 50
  • Number of attempts: 1
VimGolfNight - 604 entries

Based on "The name of the game".

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

Oops.

  • Best score: 10
  • Best player score: 17
  • Position: #2782 / 4226
  • Number of attempts: 1
learn vim in short time - 248 entries

so happy to learn vim.because vim is awesome

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

Rotate that triangle.

  • Best score: 14
  • Best player score: 21
  • Position: #85 / 148
  • Number of attempts: 3
Gray area - 765 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 12
  • Position: #40 / 277
  • Number of attempts: 4
Going underground.... - 377 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: #82 / 131
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10758 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 13
  • Position: #2540 / 3717
  • Number of attempts: 2
Words in parens - 13058 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 20
  • Position: #3220 / 3993
  • Number of attempts: 1
Hole-in-one - 1041 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: #276 / 308
  • Number of attempts: 2
Python: Lots of function arguments - 129 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: #30 / 53
  • Number of attempts: 1
The name of the game - 704 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #149 / 372
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1643 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: #308 / 458
  • Number of attempts: 2
replacing each line of a block selection - 3069 entries

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

  • Best score: 18
  • Best player score: 21
  • Position: #378 / 790
  • Number of attempts: 5
Switch function arguments - 2237 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 15
  • Position: #569 / 687
  • Number of attempts: 2
switch variable - 5131 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 17
  • Position: #1623 / 1766
  • Number of attempts: 1
Make it more readable - 2041 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 16
  • Position: #393 / 659
  • Number of attempts: 2
Increment, increment, increment.... - 710 entries

Vim likes macros

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

obsessed software engineer

entered into 20 challenges

contributed 0 challenges