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

vim = 22 / 7 - 422 entries

pi square vim

  • Best score: 20
  • Best player score: 20
  • Position: #25 / 129
  • Number of attempts: 6
V to the i - 4639 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #50 / 1856
  • Number of attempts: 3
Search and Replace 0 - 4651 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #343 / 1541
  • Number of attempts: 5
Subtraction - 168 entries

Solve the equations.

  • Best score: 18
  • Best player score: 22
  • Position: #24 / 58
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10533 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #444 / 3637
  • Number of attempts: 5
Letter case trickery - 1547 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: 12
  • Position: #324 / 498
  • Number of attempts: 1
paste indent correction - JS - 92 entries

You copy some javascript code from a website and paste it into vim, it does not look good!

  • Best score: 16
  • Best player score: 17
  • Position: #40 / 53
  • Number of attempts: 1
Delete unwanted lines - 358 entries

Delete all lines which does not end in "o.."

  • Best score: 9
  • Best player score: 9
  • Position: #140 / 215
  • Number of attempts: 1
abcd > a b c d - 260 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #139 / 204
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1508 entries

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

  • Best score: 8
  • Best player score: 8
  • Position: #61 / 424
  • Number of attempts: 2
Append semicolon after expressions - 942 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 12
  • Position: #206 / 385
  • Number of attempts: 1
remove dupes from array - 1290 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 19
  • Position: #109 / 325
  • Number of attempts: 3
Numbering a List - 1828 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 19
  • Position: #241 / 625
  • Number of attempts: 2
Shebangs for all - 1771 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: 12
  • Position: #129 / 467
  • Number of attempts: 2
Reverse Simple Deletion - 758 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #291 / 429
  • Number of attempts: 1
The Cake is a Lie - 1194 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 9
  • Position: #190 / 486
  • Number of attempts: 2
Compile C - 315 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 22
  • Position: #81 / 122
  • Number of attempts: 1
kemar
Twitter:

entered into 17 challenges

contributed 0 challenges