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

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

  • Best score: 5
  • Best player score: 5
  • Position: #149 / 455
  • Number of attempts: 1
Search and Replace 0 - 5167 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #185 / 1677
  • Number of attempts: 3
Python Hello World! Reformatting - 1057 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 43
  • Position: #168 / 402
  • Number of attempts: 2
Groups magic - 175 entries

Regexp or macros for string converting: (a) -> ___ (abc) -> ____ (abcd) -> ______ All in the '(' replace to _ multiply by char count + ()

  • Best score: 12
  • Best player score: 14
  • Position: #34 / 102
  • Number of attempts: 1
abcd > a b c d - 310 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #52 / 232
  • Number of attempts: 1
SFD-ROC: Tic-Tac-Toe - 174 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: 36
  • Position: #40 / 55
  • Number of attempts: 2
SFD-ROC: The Quick Brown Fox - 212 entries

Someone has vandalized our text (again). Please fix to read: The Quick Brown Fox Jumps Over The Lazy Dog.

  • Best score: 24
  • Best player score: 28
  • Position: #66 / 110
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1643 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 14
  • Position: #346 / 458
  • Number of attempts: 2
SFD-ROC: Pipe Dreams - 139 entries

Move the pipes so they match the output.

  • Best score: 12
  • Best player score: 20
  • Position: #46 / 50
  • Number of attempts: 1
Vertical Limit - 2641 entries

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

  • Best score: 21
  • Best player score: 28
  • Position: #584 / 780
  • Number of attempts: 1
Reformat long lines - 390 entries

Rearrange this ruby method call to put each parameter on its own line. Could become a useful macro.

  • Best score: 15
  • Best player score: 21
  • Position: #110 / 142
  • Number of attempts: 1
Numbering a List - 1970 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 25
  • Position: #529 / 662
  • Number of attempts: 2
The holy-grail may help - 408 entries

Can you find it in less than 20 strokes, Arthur?

  • Best score: 16
  • Best player score: 16
  • Position: #117 / 222
  • Number of attempts: 1
Reverse Simple Deletion - 875 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #265 / 467
  • Number of attempts: 2
Increment, increment, increment.... - 710 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #254 / 418
  • Number of attempts: 1
The Cake is a Lie - 1419 entries

Correct the capitalization of each word

  • Best score: 8
  • Best player score: 10
  • Position: #353 / 544
  • Number of attempts: 1
Context Insensitive completion 1 - 535 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 18
  • Position: #95 / 253
  • Number of attempts: 3
Reverse characters in a line - 847 entries

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

  • Best score: 8
  • Best player score: 15
  • Position: #144 / 284
  • Number of attempts: 8
Reconstruct the Sentence - 1757 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: 20
  • Position: #79 / 459
  • Number of attempts: 4
Flodder-challenge - 1510 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 29
  • Position: #91 / 380
  • Number of attempts: 7
Simple text editing with Vim - 13667 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #2294 / 3914
  • Number of attempts: 2
JonLz
Twitter:

I like code.

entered into 21 challenges

contributed 0 challenges