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

Delete the instructions at the top and bottom.

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

Oops.

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

Change this piece of HAML code back into erb

  • Best score: 32
  • Best player score: 42
  • Position: #40 / 69
  • Number of attempts: 6
The Quick Brown Fox Jumps Over The Lazy Vim - 400 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: #39 / 187
  • Number of attempts: 4
Stairs Indenting - 446 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 14
  • Position: #59 / 193
  • Number of attempts: 3
Unwrap the text of an email message - 184 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 / 72
  • Number of attempts: 3
Python to Ruby - 195 entries

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

  • Best score: 24
  • Best player score: 48
  • Position: #52 / 58
  • Number of attempts: 1
Let's play some Ivmgolf - 1084 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #144 / 440
  • Number of attempts: 1
Vertical Limit - 2436 entries

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

  • Best score: 21
  • Best player score: 25
  • Position: #313 / 735
  • Number of attempts: 3

Contributed Challenges

Stairs Indenting - 446 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