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

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

  • Best score: 7
  • Best player score: 8
  • Position: #905 / 1856
  • Number of attempts: 1
Extract argument from function - 2215 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #307 / 728
  • Number of attempts: 3
That hyphen - 2498 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 12
  • Position: #391 / 683
  • Number of attempts: 4
Basic renumbering - 5428 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 18
  • Position: #587 / 1226
  • Number of attempts: 2
ASCII box - 317 entries

Don't forget to fix typos!

  • Best score: 23
  • Best player score: 27
  • Position: #61 / 102
  • Number of attempts: 2
Condensed Cases - 752 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: 15
  • Position: #146 / 230
  • Number of attempts: 2
Happy TvvO - 388 entries

Don’t forget the past, learn from it. Happy New Year.

  • Best score: 12
  • Best player score: 12
  • Position: #35 / 194
  • Number of attempts: 1
I forgot quotes - 15727 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1424 / 4113
  • Number of attempts: 4
Shift down - 191 entries

Number words are back.

  • Best score: 19
  • Best player score: 20
  • Position: #21 / 66
  • Number of attempts: 2
-a-b-c- - 3118 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #485 / 1112
  • Number of attempts: 1
Count both ways - 957 entries

Right AND down.

  • Best score: 13
  • Best player score: 15
  • Position: #96 / 340
  • Number of attempts: 2
Gray area - 698 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 13
  • Position: #137 / 259
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10533 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1889 / 3637
  • Number of attempts: 3
Simple text editing with Vim - 11620 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1294 / 3409
  • Number of attempts: 1
Harold Pong
Twitter:

entered into 14 challenges

contributed 0 challenges