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

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

  • Best score: 7
  • Best player score: 7
  • Position: #126 / 1887
  • Number of attempts: 5
Extract argument from function - 2337 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #105 / 750
  • Number of attempts: 4
Just the middle - 11380 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #152 / 4174
  • Number of attempts: 3
Basic renumbering - 5605 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 14
  • Position: #329 / 1260
  • Number of attempts: 8
JSON string rotation - 56 entries

Right value strings are misplaced. Just rotate them! I'm too kind with you guys and didn't included "strings with \" in it"!

  • Best score: 19
  • Best player score: 22
  • Position: #9 / 20
  • Number of attempts: 3
Space out the alphabet - 1630 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 18
  • Position: #207 / 442
  • Number of attempts: 1
Mute the second method of this script - 449 entries

prepend a # infront of every line of the second method

  • Best score: 8
  • Best player score: 9
  • Position: #18 / 238
  • Number of attempts: 2
Refactoring useless Method away - 92 entries

Real-life challenge, convert a bunch of ifs to a switch statement

  • Best score: 47
  • Best player score: 62
  • Position: #22 / 33
  • Number of attempts: 1
Square numbers - 104 entries

Boring math puzzle.

  • Best score: 16
  • Best player score: 35
  • Position: #30 / 41
  • Number of attempts: 1
I forgot quotes - 15946 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #38 / 4166
  • Number of attempts: 6
-a-b-c- - 3183 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Position: #51 / 1132
  • Number of attempts: 4
Gray area - 745 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 12
  • Position: #56 / 270
  • Number of attempts: 3
Do you demand a shrubbery? - 1136 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 32
  • Position: #257 / 298
  • Number of attempts: 1
Don't know what this is - 1996 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: 11
  • Position: #32 / 581
  • Number of attempts: 4
Where should I put the Newline? - 874 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 7
  • Position: #129 / 436
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10652 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #547 / 3677
  • Number of attempts: 4
Letter case trickery - 1598 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: #262 / 514
  • Number of attempts: 3
Words in parens - 12868 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1410 / 3950
  • Number of attempts: 2
abcd > a b c d - 282 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #148 / 220
  • Number of attempts: 1
switch variable - 5045 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #339 / 1742
  • Number of attempts: 1
Reverse Simple Deletion - 834 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 11
  • Position: #25 / 455
  • Number of attempts: 1
Reformat a C golf submission - 574 entries

Take this C golf submission (for the "tiny but standards-compliant Hello World program" category, naturally), and turn it into formatted C code.

  • Best score: 22
  • Best player score: 25
  • Position: #19 / 203
  • Number of attempts: 9
Simple text editing with Vim - 12491 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #315 / 3626
  • Number of attempts: 2
david hu
Twitter:

entered into 23 challenges

contributed 0 challenges