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

Search and Replace 0 - 5102 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #246 / 1662
  • Number of attempts: 2
Just the middle - 11574 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1673 / 4241
  • Number of attempts: 1
VimGolfNight - 581 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #52 / 353
  • Number of attempts: 1
I forgot quotes - 16176 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1517 / 4216
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10748 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1979 / 3711
  • Number of attempts: 4
Letter case trickery - 1663 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: 16
  • Position: #457 / 522
  • Number of attempts: 1
quotes inside quotes - 3195 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: 17
  • Position: #721 / 1089
  • Number of attempts: 1
Words in parens - 13028 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 17
  • Position: #2565 / 3984
  • Number of attempts: 1
Prefixes and suffixes - 649 entries

Generate all prefixes of "vimchallenge", then all suffixes.

  • Best score: 17
  • Best player score: 32
  • Position: #170 / 205
  • Number of attempts: 1
A simple change - 476 entries

Just change the numbers in the most efficient way ...

  • Best score: 12
  • Best player score: 17
  • Position: #170 / 196
  • Number of attempts: 2
SFD-ROC: vimvimvim - 1628 entries

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

  • Best score: 8
  • Best player score: 13
  • Position: #303 / 454
  • Number of attempts: 2
Switch function arguments - 2195 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 14
  • Position: #475 / 678
  • Number of attempts: 1
Append semicolon after expressions - 1067 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 13
  • Position: #321 / 423
  • Number of attempts: 1
The meaning - 580 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #198 / 365
  • Number of attempts: 1
Shebangs for all - 2090 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 18
  • Position: #377 / 529
  • Number of attempts: 3
A Simple One - 1076 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #340 / 676
  • Number of attempts: 1
Reverse Simple Deletion - 862 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #277 / 463
  • Number of attempts: 2
The Cake is a Lie - 1390 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 11
  • Position: #439 / 539
  • Number of attempts: 1
Change the content of a string - 1764 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 27
  • Position: #506 / 647
  • Number of attempts: 2
Simple text editing with Vim - 13517 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1431 / 3876
  • Number of attempts: 5
engy
Twitter:

entered into 20 challenges

contributed 0 challenges