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 4d1b795a81502541ad00000f

Context Insensitive completion 1

Finish writing this simple Python HTTP server.

Start file
from SimpleHTTPServer import SimpleHTTPRequestHandler
from SocketServer import TCPServer

ADDR = ("", 8080)
httpd = # Finish this line
httpd.serve_forever()
End file
from SimpleHTTPServer import SimpleHTTPRequestHandler
from SocketServer import TCPServer

ADDR = ("", 8080)
httpd = TCPServer(ADDR, SimpleHTTPRequestHandler)
httpd.serve_forever()

View Diff

5c5
< httpd = # Finish this line
---
> httpd = TCPServer(ADDR, SimpleHTTPRequestHandler)

Solutions by @gezwitschersux:

Unlock 7 remaining solutions by signing in and submitting your own entry
Created by: @wolever

223 active golfers, 436 entries

Solutions by @gezwitschersux:
24
#192 - Shawn Stein / @gezwitschersux

12/29/2010 at 08:43PM

25
#>194 - Shawn Stein / @gezwitschersux

12/29/2010 at 08:57PM

26
#>197 - Shawn Stein / @gezwitschersux

12/29/2010 at 10:13PM

27
#>199 - Shawn Stein / @gezwitschersux

12/29/2010 at 07:50PM

28
#>201 - Shawn Stein / @gezwitschersux

12/29/2010 at 08:42PM

29
#>201 - Shawn Stein / @gezwitschersux

12/29/2010 at 08:46PM

30
#>201 - Shawn Stein / @gezwitschersux

12/29/2010 at 08:39PM