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

Well, swap the values...

  • Best score: 11
  • Best player score: 20
  • Position: #1182 / 1290
  • Number of attempts: 2
V to the i - 4853 entries

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

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

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

  • Best score: 12
  • Best player score: 14
  • Position: #1006 / 1662
  • Number of attempts: 6
Just the middle - 11572 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2190 / 4240
  • Number of attempts: 2
Make HTML List - 1071 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 49
  • Position: #188 / 275
  • Number of attempts: 1
VimGolfNight - 581 entries

Based on "The name of the game".

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

Oops.

  • Best score: 10
  • Best player score: 12
  • Position: #1291 / 4216
  • Number of attempts: 5
-a-b-c- - 3233 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #961 / 1143
  • Number of attempts: 1
NBCU Weekly Challenge - #0 - 148 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: #49 / 59
  • Number of attempts: 2
Do you demand a shrubbery? - 1184 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 27
  • Position: #196 / 305
  • Number of attempts: 1
Don't know what this is - 2040 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: #475 / 590
  • Number of attempts: 1
Two become one - 736 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: #158 / 212
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10748 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1947 / 3711
  • Number of attempts: 6
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: #851 / 1089
  • Number of attempts: 2
Words in parens - 13028 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #469 / 3984
  • Number of attempts: 3
NATO phonetic alphabet - 539 entries

Transform the series of words into a list.

  • Best score: 19
  • Best player score: 23
  • Position: #137 / 198
  • Number of attempts: 1
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: 12
  • Position: #292 / 454
  • Number of attempts: 3
Vertical Limit - 2624 entries

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

  • Best score: 21
  • Best player score: 27
  • Position: #552 / 774
  • Number of attempts: 1
replacing each line of a block selection - 3040 entries

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

  • Best score: 18
  • Best player score: 36
  • Position: #748 / 785
  • Number of attempts: 1
Switch function arguments - 2195 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 14
  • Position: #491 / 678
  • Number of attempts: 1
Ruby 1.9 hashes - 1287 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 / 415
  • Number of attempts: 5
Simple text editing with Vim - 13512 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1408 / 3875
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 7579 entries

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

  • Best score: 7
  • Best player score: 49
  • Position: #1434 / 1871
  • Number of attempts: 2
Malte R
Twitter:

entered into 23 challenges

contributed 0 challenges