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

Extract argument from function - 2379 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 16
  • Position: #483 / 760
  • Number of attempts: 3
Search and Replace 0 - 5042 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #317 / 1643
  • Number of attempts: 2
Words in parens - 13005 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2128 / 3979
  • Number of attempts: 2
SFD-ROC: vimvimvim - 1620 entries

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

  • Best score: 8
  • Best player score: 14
  • Position: #361 / 450
  • Number of attempts: 1
Switch function arguments - 2188 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 16
  • Position: #616 / 676
  • Number of attempts: 2
switch variable - 5101 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Position: #1363 / 1756
  • Number of attempts: 3
Make it more readable - 2015 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 17
  • Position: #467 / 654
  • Number of attempts: 2
A Simple One - 1070 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #382 / 673
  • Number of attempts: 1
Subhi Dweik
Twitter:

entered into 8 challenges

contributed 0 challenges