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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 221 remaining solutions by signing in and submitting your own entry
#222 Austin Ware / @AustinWare17 - Score: 49 - 03/13/18 @ 04:09
/#<CR>c$TCPServer(ADDR, SimpleHTTPRequestHandler)<Esc>ZZ

0 comments


Created by: @wolever

222 active golfers, 427 entries

Leaderboard (lowest score wins):
38
#211 - bmaddy / @bmaddy

12/30/2010 at 07:56AM

39
#212 - Andrew McDonough / @andrewmcdonough

12/29/2010 at 06:57PM

39
#213 - Joe Hassick / @jhassick

12/29/2010 at 07:25PM

39
#214 - editor3D / @editor3D

11/13/2018 at 05:48PM

40
#215 - Pedro Moreira Santos / @pedromsantos

12/29/2010 at 09:33PM

40
#216 - Guillaume Bonnoron / @gbonnoron

12/30/2010 at 05:24PM

40
#217 - William Shackleton / @wshackleton

12/30/2010 at 09:32PM

40
#218 - Hugo Tai / @HugoTai100

06/11/2019 at 06:11AM

45
#219 - Rolf K. / @mindleftbody

06/17/2011 at 02:46PM

47
#220 - rappenstein2 / @rappenstein2

01/20/2022 at 04:32PM

48
#221 - Tom Adams / @holizz

12/29/2010 at 07:16PM

49
#222 - Austin Ware / @AustinWare17

03/13/2018 at 04:09AM