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

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

233 active golfers, 460 entries

Solutions by @shahanavazm:
18
#147 - shahanavaz m / @shahanavazm

02/14/2022 at 03:00AM

19
#>175 - shahanavaz m / @shahanavazm

02/14/2022 at 02:57AM

19
#>176 - shahanavaz m / @shahanavazm

02/13/2024 at 03:19AM

25
#>201 - shahanavaz m / @shahanavazm

03/25/2023 at 02:55AM

48
#>230 - shahanavaz m / @shahanavazm

01/29/2024 at 02:50AM

52
#>232 - shahanavaz m / @shahanavazm

02/14/2022 at 02:53AM