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

That hyphen - 2500 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 11
  • Position: #302 / 683
  • Number of attempts: 2
Just the middle - 11141 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #55 / 4114
  • Number of attempts: 5
Basic renumbering - 5436 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 14
  • Position: #301 / 1228
  • Number of attempts: 6
Land of the Lost - 76 entries

Enter the tabs below the lyrics

  • Best score: 26
  • Best player score: 34
  • Position: #12 / 29
  • Number of attempts: 3
swap or reverse - 104 entries

Try to swap or reverse the line as needed.

  • Best score: 16
  • Best player score: 32
  • Position: #62 / 62
  • Number of attempts: 1
readability - 306 entries

Make the code readable by adding some spaces

  • Best score: 18
  • Best player score: 19
  • Position: #110 / 145
  • Number of attempts: 1
Space out the alphabet - 1595 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 19
  • Position: #238 / 434
  • Number of attempts: 3
Shuffled numbers - 216 entries

Each number is paired with the number it should follow. That's enough information to put them in order.

  • Best score: 15
  • Best player score: 16
  • Position: #43 / 89
  • Number of attempts: 1
Config Sections - 38 entries

Section me!

  • Best score: 43
  • Best player score: 60
  • Position: #15 / 18
  • Number of attempts: 2
Condensed Cases - 758 entries

Apple's new programming language, Swift, allows two style of case statements: 1) one Enum case on each line, or 2) multiple Enum cases on a single line. Convert the following from the first case (no pun intended) to the second type.

  • Best score: 12
  • Best player score: 12
  • Position: #6 / 231
  • Number of attempts: 2
increment by column in XML - 146 entries

modify an arbitrary "column" in an xml table by incrementing a an arbitrary placeholder string

  • Best score: 19
  • Best player score: 28
  • Position: #46 / 53
  • Number of attempts: 2
I forgot quotes - 15748 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #17 / 4116
  • Number of attempts: 4
-a-b-c- - 3118 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #464 / 1112
  • Number of attempts: 3
Count both ways - 962 entries

Right AND down.

  • Best score: 13
  • Best player score: 20
  • Position: #326 / 342
  • Number of attempts: 1
Neither Fizz nor Buzz - 221 entries

Not your regular increment macro! The gaps are tricky.

  • Best score: 13
  • Best player score: 20
  • Position: #71 / 97
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10538 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1874 / 3638
  • Number of attempts: 1
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1385 / 3919
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 6033 entries

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

  • Best score: 32
  • Best player score: 41
  • Position: #832 / 1486
  • Number of attempts: 2
Grisha Pushkov
Twitter:

entered into 18 challenges

contributed 0 challenges