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

Wrap the text of an email message to 79 characters - 565 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Position: #134 / 348
  • Number of attempts: 1
SFD-ROC: Tic-Tac-Toe - 131 entries

Tic-Tac-Toe You are 'X', and it is your turn. Stop 'O' from winning, and complete the game. Draw a diagonal line through your winning row of three X's.

  • Best score: 25
  • Best player score: 30
  • Position: #15 / 49
  • Number of attempts: 3
Python to Ruby - 190 entries

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

  • Best score: 24
  • Best player score: 27
  • Position: #13 / 56
  • Number of attempts: 4
Vertical Limit - 2363 entries

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

  • Best score: 21
  • Best player score: 22
  • Position: #121 / 714
  • Number of attempts: 11
Switch function arguments - 1967 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 12
  • Position: #214 / 624
  • Number of attempts: 6
Append semicolon after expressions - 939 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 12
  • Position: #161 / 383
  • Number of attempts: 3
Remove noise from HTTP log - 657 entries

This piece of log (from the year 2000) contains some irrelevant data. We only want to see the HTTP method and resource.

  • Best score: 15
  • Best player score: 15
  • Position: #51 / 259
  • Number of attempts: 3
Remove semicolons after expressions - 530 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 6
  • Position: #46 / 231
  • Number of attempts: 3
Dan Goldstein
Twitter:

Dan Goldstein is a Principal Researcher at Microsoft & Fellow at London Business School

entered into 8 challenges

contributed 0 challenges