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 @mortimerj:

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

245 active golfers, 498 entries

Solutions by @mortimerj:
18
#4 - Mortimerj / @mortimerj

12/29/2010 at 08:33PM

19
#>171 - Mortimerj / @mortimerj

12/29/2010 at 08:32PM

20
#>187 - Mortimerj / @mortimerj

12/29/2010 at 08:30PM

21
#>191 - Mortimerj / @mortimerj

12/29/2010 at 07:53PM

24
#>204 - Mortimerj / @mortimerj

12/29/2010 at 07:39PM

25
#>209 - Mortimerj / @mortimerj

12/29/2010 at 07:36PM

29
#>216 - Mortimerj / @mortimerj

12/29/2010 at 07:32PM