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

Swap values - 4178 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 4
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
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
HTML to Haml - 757 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 36
  • Number of attempts: 2
switch variable - 4663 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 3
Collect List - 3930 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 16
  • Number of attempts: 1
Split line with dots - 2021 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 16
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 5692 entries

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

  • Best score: 32
  • Best player score: 40
  • Number of attempts: 1
Words in parens - 12073 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10144 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 3
V to the i - 4375 entries

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

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
-a-b-c- - 2886 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 4
Basic renumbering - 5136 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 20
  • Number of attempts: 1
I forgot quotes - 14487 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Number of attempts: 2
Space out the alphabet - 1479 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 17
  • Number of attempts: 6
niels aamloos
Twitter:

entered into 15 challenges

contributed 0 challenges