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

Just the middle - 11380 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #13 / 4174
  • Number of attempts: 2
I forgot quotes - 15946 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #36 / 4166
  • Number of attempts: 7
Dehamlizing - 184 entries

Change this piece of HAML code back into erb

  • Best score: 32
  • Best player score: 42
  • Position: #41 / 71
  • Number of attempts: 6
The Quick Brown Fox Jumps Over The Lazy Vim - 404 entries

Someone has vandalized this text file and replaced the beginning character of one word in each line with a Big "X." Please remove the big X's, and fix each line to read "The Quick Brown Fox Jumps Over The Lazy Dog."

  • Best score: 8
  • Best player score: 10
  • Position: #40 / 190
  • Number of attempts: 4
Stairs Indenting - 452 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 14
  • Position: #60 / 195
  • Number of attempts: 3
Unwrap the text of an email message - 188 entries

Reverse of "Wrap the text of an email message to 79 characters". gq and gw are great for wrapping paragraphs. But sometimes other programs choke on your wrapped lines. What's the best way to un-gq?

  • Best score: 16
  • Best player score: 16
  • Position: #7 / 73
  • Number of attempts: 3
Python to Ruby - 198 entries

Convert this Python code to Ruby. NOTE: This program likely won't run.

  • Best score: 24
  • Best player score: 48
  • Position: #53 / 60
  • Number of attempts: 1
Let's play some Ivmgolf - 1096 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #146 / 442
  • Number of attempts: 1
Vertical Limit - 2487 entries

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

  • Best score: 21
  • Best player score: 25
  • Position: #318 / 748
  • Number of attempts: 3

Contributed Challenges

Stairs Indenting - 452 entries

Indent each line with <line number> whitespaces.

Danilo
Twitter:

Software Engineer at @ThreemaApp. Doing stuff at @coredump_ch. Freelancer. Pythonista. Rustacean. Third Culture Kid. Paraglider. Christian. Online. (EN / DE)

entered into 9 challenges

contributed 1 challenges