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

Split line with dots - 2049 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 16
  • Number of attempts: 2
Swap values - 4313 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 4
Collect List - 4063 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 16
  • Number of attempts: 1
Space out the alphabet - 1482 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 17
  • Number of attempts: 6
I forgot quotes - 15244 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Number of attempts: 2
Basic renumbering - 5320 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 20
  • Number of attempts: 1
-a-b-c- - 3008 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 4
V to the i - 4523 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10391 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 3
Words in parens - 12439 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 1
Saving the hashes(#) - 1876 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: 26
  • Number of attempts: 3
switch variable - 4806 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 3
HTML to Haml - 758 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 36
  • Number of attempts: 2
Python Hello World! Reformatting - 859 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 41
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 5743 entries

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

  • Best score: 32
  • Best player score: 40
  • Number of attempts: 1
niels aamloos
Twitter:

entered into 15 challenges

contributed 0 challenges