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

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

  • Best score: 5
  • Best player score: 5
  • Position: #72 / 422
  • Number of attempts: 1
replacing each line of a block selection - 3005 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 21
  • Position: #320 / 779
  • Number of attempts: 5
Shebangs for all - 2018 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 13
  • Position: #186 / 519
  • Number of attempts: 7
Make Fancy Header - 1063 entries

Make the header text stand out with surrounding asterisks

  • Best score: 15
  • Best player score: 24
  • Position: #298 / 346
  • Number of attempts: 5
Change the content of a string - 1600 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #263 / 596
  • Number of attempts: 4
Sort and add attributes - 1480 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 34
  • Position: #327 / 576
  • Number of attempts: 2
Add fold markers to a .c file - 662 entries

Fold markers can make it easier to navigate source code. Add them to this .c file.

  • Best score: 30
  • Best player score: 30
  • Position: #9 / 190
  • Number of attempts: 5
Reconstruct the Sentence - 1599 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 19
  • Best player score: 25
  • Position: #330 / 426
  • Number of attempts: 2
Braces or Brackets? - 1056 entries

Someone forgot whether to use braces or brackets and you have to clean up their code!

  • Best score: 34
  • Best player score: 48
  • Position: #201 / 325
  • Number of attempts: 2
Whitespace, empty lines and tabs - 3763 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 22
  • Position: #286 / 807
  • Number of attempts: 8
Flodder-challenge - 1343 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 51
  • Position: #316 / 348
  • Number of attempts: 1
Simple text editing with Vim - 13013 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #2193 / 3744
  • Number of attempts: 7
Reformat/Refactor a Golfer Class - 7173 entries

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

  • Best score: 28
  • Best player score: 57
  • Position: #1556 / 1761
  • Number of attempts: 2
sjatkinson
Twitter:

Proud Code Monkey

entered into 13 challenges

contributed 0 challenges