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

Quicksort - 2035 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 24
  • Position: #255 / 450
  • Number of attempts: 7
delete swap - 1801 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #354 / 561
  • Number of attempts: 2
Put a newline after every 10 lines in vim - 1664 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 13
  • Position: #409 / 559
  • Number of attempts: 2
hello-world-vimgolf - 2505 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #336 / 712
  • Number of attempts: 4
Contribute to keyboard mashing - 898 entries

Speak in tongues

  • Best score: 17
  • Best player score: 19
  • Position: #156 / 272
  • Number of attempts: 2
Python: Def to Lambda - 460 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 25
  • Position: #148 / 157
  • Number of attempts: 3
Add semicolons - 10891 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1778 / 3077
  • Number of attempts: 2
Wrap the text of an email message to 79 characters - 814 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #303 / 426
  • Number of attempts: 5
Search and Replace 0 - 5007 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #732 / 1631
  • Number of attempts: 4
Python Hello World! Reformatting - 1006 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: #197 / 383
  • Number of attempts: 3
Reformat long lines - 361 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: 50
  • Position: #135 / 135
  • Number of attempts: 1
Assignment Alignment - 885 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 24
  • Position: #116 / 221
  • Number of attempts: 9
Sorting paragraphs - 552 entries

Order the paragraphs correctly, per prefixed index

  • Best score: 18
  • Best player score: 37
  • Position: #116 / 165
  • Number of attempts: 1
Context insensitive completion 0 - 590 entries

Buried in the lines you're not supposed to add is the line "Add this line!" Add that line to the top of the file.

  • Best score: 6
  • Best player score: 6
  • Position: #4 / 249
  • Number of attempts: 5
Context Insensitive completion 1 - 512 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 18
  • Position: #159 / 248
  • Number of attempts: 1
Reformat some Python - 627 entries

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 42
  • Position: #124 / 240
  • Number of attempts: 3
Get rid of html tags - 415 entries

Want to read more about Vim's background? Then get rid of those html tags...

  • Best score: 12
  • Best player score: 17
  • Position: #134 / 239
  • Number of attempts: 2
Reconstruct the Sentence - 1647 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: #152 / 433
  • Number of attempts: 9
Whitespace, empty lines and tabs - 3793 entries

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

  • Best score: 16
  • Best player score: 51
  • Position: #784 / 814
  • Number of attempts: 2
Simple text editing with Vim - 13092 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #2013 / 3765
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7229 entries

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

  • Best score: 10
  • Best player score: 49
  • Position: #1394 / 1778
  • Number of attempts: 5
Justin Choi
Twitter2:

entered into 21 challenges

contributed 0 challenges