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

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

248 active golfers, 512 entries

Solutions by @paulsmolloy:
18
#156 - Paul Molloy / @paulsmolloy

10/28/2023 at 02:44PM

18
#>156 - Paul Molloy / @paulsmolloy

10/28/2023 at 02:49PM

18
#>156 - Paul Molloy / @paulsmolloy

10/29/2023 at 11:41AM

18
#>157 - Paul Molloy / @paulsmolloy

04/29/2024 at 06:26AM

18
#>157 - Paul Molloy / @paulsmolloy

04/29/2024 at 06:26AM

20
#>192 - Paul Molloy / @paulsmolloy

04/29/2024 at 06:25AM

31
#>220 - Paul Molloy / @paulsmolloy

10/28/2023 at 02:41PM

35
#>225 - Paul Molloy / @paulsmolloy

10/28/2023 at 02:39PM

42
#>241 - Paul Molloy / @paulsmolloy

10/28/2023 at 02:38PM

56
#>246 - Paul Molloy / @paulsmolloy

10/28/2023 at 02:36PM