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

Winding path - 91 entries

It's a maze, but the bad paths have been blocked off. Mark the correct path.

  • Best score: 27
  • Best player score: 113
  • Number of attempts: 1
Printable ASCII characters - 95 entries

From a blank input, print all 95 printing ASCII characters one per line, from space to tilde.

  • Best score: 22
  • Best player score: 39
  • Number of attempts: 1
attr_aligner - 2802 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 37
  • Number of attempts: 1
Going underground.... - 277 entries

Simple reformatting: in this case changing from the format London underground supplies its customers with, to the format that Google Calendar likes...

  • Best score: 22
  • Best player score: 30
  • Number of attempts: 4
Search and Replace 0 - 3875 entries

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

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

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

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 8
Where should I put the Newline? - 785 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 4
Mess in revision history - 936 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 28
  • Number of attempts: 1
Words in parens - 10462 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 6
Readable Rubyhash - 227 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 23
  • Best player score: 27
  • Number of attempts: 6
Shuffle puzzle - 285 entries

Sort the lines in each indent group, and sort the groups. That's the pattern. Or just move lines around manually to get a better score.

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 5
replacing each line of a block selection - 2424 entries

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

  • Best score: 17
  • Best player score: 19
  • Number of attempts: 10
quotes inside quotes - 2654 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 2
  • Best player score: 18
  • Number of attempts: 1
That hyphen - 1869 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 12
  • Number of attempts: 5
Numbering a List - 1707 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 17
  • Number of attempts: 9
A HAPPY NEW YEAR 2014 ! - 9166 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 19
  • Number of attempts: 3
Nic West
Twitter:

PEWPEW!

entered into 16 challenges

contributed 0 challenges