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

Execute immediate SQL - 77 entries

Sql string tranformation ...

  • Best score: 60
  • Best player score: 77
  • Number of attempts: 1
Saving the hashes(#) - 1794 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: 27
  • Number of attempts: 5
I forgot quotes - 12685 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Number of attempts: 2
Circle in a square - 125 entries

Probably looks more like "Egg in a rectangle" in most fonts, but it's actually 23x23.

  • Best score: 23
  • Best player score: 23
  • Number of attempts: 6
A HAPPY NEW YEAR 2014 ! - 9706 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
Mute the second method of this script - 416 entries

prepend a # infront of every line of the second method

  • Best score: 9
  • Best player score: 12
  • Number of attempts: 1
Swap values - 3747 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 3
Fix the XML - 884 entries

The challenge consists in having a valid xml from an incomplete source.

  • Best score: 18
  • Best player score: 25
  • Number of attempts: 1
-a-b-c- - 2689 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 2
Just the middle - 9651 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 9
  • Number of attempts: 3
Words in parens - 11363 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 1
Extract argument from function - 2045 entries

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

  • Best score: 13
  • Best player score: 17
  • Number of attempts: 1
talineo
Twitter:

entered into 12 challenges

contributed 0 challenges