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

Swap values - 4600 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 20
  • Position: #1162 / 1264
  • Number of attempts: 2
V to the i - 4795 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #361 / 1891
  • Number of attempts: 4
Search and Replace 0 - 4952 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #980 / 1615
  • Number of attempts: 6
Just the middle - 11417 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2178 / 4181
  • Number of attempts: 2
Make HTML List - 1050 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 49
  • Position: #186 / 273
  • Number of attempts: 1
VimGolfNight - 555 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #199 / 345
  • Number of attempts: 2
I forgot quotes - 15954 entries

Oops.

  • Best score: 10
  • Best player score: 12
  • Position: #1278 / 4170
  • Number of attempts: 5
-a-b-c- - 3213 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #955 / 1137
  • Number of attempts: 1
NBCU Weekly Challenge - #0 - 139 entries

One of our favorites lines here at NBCU! p.s. The first version of #0 was deleted due to me copy/pasting a HTML entity. Congrats to the one who figured that out, you are a true ninja warrior!

  • Best score: 30
  • Best player score: 35
  • Position: #48 / 58
  • Number of attempts: 2
Do you demand a shrubbery? - 1158 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 27
  • Position: #193 / 300
  • Number of attempts: 1
Don't know what this is - 2014 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: 16
  • Position: #471 / 582
  • Number of attempts: 1
Two become one - 713 entries

We have two c arrays and want to make one two dimensional out of it. Can we do that?

  • Best score: 25
  • Best player score: 35
  • Position: #155 / 208
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10654 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1929 / 3678
  • Number of attempts: 6
quotes inside quotes - 3154 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: #845 / 1075
  • Number of attempts: 2
Words in parens - 12918 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #457 / 3957
  • Number of attempts: 3
NATO phonetic alphabet - 526 entries

Transform the series of words into a list.

  • Best score: 19
  • Best player score: 23
  • Position: #135 / 195
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1606 entries

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

  • Best score: 8
  • Best player score: 12
  • Position: #290 / 446
  • Number of attempts: 3
Vertical Limit - 2522 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 27
  • Position: #537 / 751
  • Number of attempts: 1
replacing each line of a block selection - 2979 entries

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

  • Best score: 18
  • Best player score: 36
  • Position: #738 / 773
  • Number of attempts: 1
Switch function arguments - 2117 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 14
  • Position: #478 / 657
  • Number of attempts: 1
Ruby 1.9 hashes - 1228 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: 12
  • Best player score: 12
  • Position: #68 / 403
  • Number of attempts: 5
Simple text editing with Vim - 12627 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1360 / 3653
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 6824 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 28
  • Best player score: 49
  • Position: #1336 / 1673
  • Number of attempts: 2
Malte R
Twitter:

entered into 23 challenges

contributed 0 challenges