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

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

  • Best score: 12
  • Best player score: 12
  • Position: #234 / 1541
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10533 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #318 / 3637
  • Number of attempts: 3
Number an outline - 223 entries

The indent and words are right, but the numbers are all wrong.

  • Best score: 25
  • Best player score: 81
  • Position: #69 / 72
  • Number of attempts: 1
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #1899 / 3919
  • Number of attempts: 3
Pairs of numbers - 345 entries

Line 1 represents x, line 2 y-data. Bring the corresponding pairs in the form "[x,y]\n"

  • Best score: 26
  • Best player score: 36
  • Position: #64 / 129
  • Number of attempts: 6
SFD-ROC: vimvimvim - 1508 entries

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

  • Best score: 8
  • Best player score: 8
  • Position: #28 / 424
  • Number of attempts: 7
Saving the hashes(#) - 1961 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: 21
  • Position: #79 / 466
  • Number of attempts: 9
Vertical Limit - 2367 entries

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

  • Best score: 21
  • Best player score: 30
  • Position: #624 / 716
  • Number of attempts: 3
replacing each line of a block selection - 2791 entries

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

  • Best score: 18
  • Best player score: 19
  • Position: #135 / 732
  • Number of attempts: 8
switch variable - 4917 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #734 / 1701
  • Number of attempts: 3
Whitespace, empty lines and tabs - 2970 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 23
  • Position: #279 / 661
  • Number of attempts: 8
Simple text editing with Vim - 11619 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1042 / 3408
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 5993 entries

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

  • Best score: 32
  • Best player score: 66
  • Position: #1408 / 1478
  • Number of attempts: 1
Michael Coles
Twitter:

-behaviour(gen_ale_drinker).

entered into 13 challenges

contributed 0 challenges