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 - 4833 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #982 / 1904
  • Number of attempts: 2
Extract argument from function - 2379 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #319 / 760
  • Number of attempts: 2
Search and Replace 0 - 5042 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #835 / 1643
  • Number of attempts: 3
That hyphen - 2602 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 11
  • Position: #313 / 704
  • Number of attempts: 2
Basic renumbering - 5707 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 15
  • Position: #522 / 1274
  • Number of attempts: 8
I forgot quotes - 16127 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1508 / 4208
  • Number of attempts: 4
Don't know what this is - 2025 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: #180 / 587
  • Number of attempts: 3
Where should I put the Newline? - 885 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #335 / 439
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10720 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1971 / 3703
  • Number of attempts: 4
Letter case trickery - 1644 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: #266 / 520
  • Number of attempts: 5
quotes inside quotes - 3185 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: #448 / 1086
  • Number of attempts: 3
Words in parens - 13005 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1436 / 3979
  • Number of attempts: 3
SFD-ROC: vimvimvim - 1620 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: #216 / 450
  • Number of attempts: 6
switch variable - 5101 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #852 / 1756
  • Number of attempts: 2
Whitespace, empty lines and tabs - 3949 entries

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

  • Best score: 16
  • Best player score: 19
  • Position: #227 / 841
  • Number of attempts: 8
Simple text editing with Vim - 13419 entries

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

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

entered into 16 challenges

contributed 0 challenges