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

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

232 active golfers, 459 entries

Solutions by @poeminlash:
18
#152 - Qing Liu / @poeminlash

07/23/2022 at 02:24AM

18
#>152 - Qing Liu / @poeminlash

07/23/2022 at 02:25AM

28
#>205 - Qing Liu / @poeminlash

07/23/2022 at 02:20AM

29
#>205 - Qing Liu / @poeminlash

07/23/2022 at 02:12AM

30
#>205 - Qing Liu / @poeminlash

07/23/2022 at 02:15AM

31
#>207 - Qing Liu / @poeminlash

07/23/2022 at 02:10AM

31
#>207 - Qing Liu / @poeminlash

07/23/2022 at 02:11AM

34
#>209 - Qing Liu / @poeminlash

07/23/2022 at 02:08AM

37
#>217 - Qing Liu / @poeminlash

07/23/2022 at 02:06AM