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

V to the i - 4641 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #957 / 1857
  • Number of attempts: 2
Extract argument from function - 2218 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #304 / 729
  • Number of attempts: 2
Search and Replace 0 - 4676 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #777 / 1549
  • Number of attempts: 3
That hyphen - 2500 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 11
  • Position: #305 / 683
  • Number of attempts: 2
Basic renumbering - 5436 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 15
  • Position: #493 / 1228
  • Number of attempts: 8
I forgot quotes - 15740 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1474 / 4115
  • Number of attempts: 4
Don't know what this is - 1951 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 12
  • Position: #173 / 572
  • Number of attempts: 3
Where should I put the Newline? - 845 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #327 / 422
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10538 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1932 / 3638
  • Number of attempts: 4
Letter case trickery - 1553 entries

This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.

  • Best score: 9
  • Best player score: 11
  • Position: #258 / 500
  • Number of attempts: 5
quotes inside quotes - 3030 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: 14
  • Best player score: 15
  • Position: #429 / 1045
  • Number of attempts: 3
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1403 / 3919
  • Number of attempts: 3
SFD-ROC: vimvimvim - 1510 entries

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

  • Best score: 8
  • Best player score: 9
  • Position: #206 / 424
  • Number of attempts: 6
switch variable - 4937 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #831 / 1707
  • Number of attempts: 2
Whitespace, empty lines and tabs - 2999 entries

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

  • Best score: 16
  • Best player score: 19
  • Position: #164 / 666
  • Number of attempts: 8
Simple text editing with Vim - 11656 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1331 / 3418
  • Number of attempts: 3
no name
Twitter:

entered into 16 challenges

contributed 0 challenges