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 204 remaining solutions by signing in and submitting your own entry
#205 Austin Ware / @AustinWare17 - Score: 49 - 03/13/18 @ 04:09
/#<CR>c$TCPServer(ADDR, SimpleHTTPRequestHandler)<Esc>ZZ

0 comments


Created by: @wolever

205 active golfers, 391 entries

Leaderboard (lowest score wins):
26
#181 - Josh Stephenson / @frivolousjosh

12/29/2010 at 08:26PM

26
#182 - Mark McD ☠ / @snuff_man

12/30/2010 at 09:02AM

26
#183 - ZOMG / @monkeybot42

09/29/2012 at 09:29PM

27
#184 - Jan Kassens / @kassens

12/29/2010 at 08:27PM

27
#185 - Yannick LM / @yanicklm

12/30/2010 at 05:04PM

31
#186 - dcbaok / @dcbaok

12/29/2010 at 08:23PM

31
#187 - Adam / @arboooz

12/29/2010 at 08:49PM

34
#188 - jasper110 / @jasper110

09/22/2011 at 09:39AM

35
#189 - Joe McCall / @joem86

12/29/2010 at 11:09PM

35
#190 - johan wester / @wester87

11/12/2011 at 10:46AM

36
#191 - Alain Gilbert / @alain_gilbert

12/30/2010 at 08:53PM

36
#192 - Øystein Walle / @oysteinwalle

07/12/2011 at 03:07PM

36
#193 - Marius Jurgelenas / @MarenasLT

08/09/2018 at 12:21PM

36
#194 - ImaNotgate / @INotgate

05/09/2019 at 07:36PM

37
#195 - Tim Andersson / @Boerworz

04/19/2011 at 11:00PM

38
#196 - bmaddy / @bmaddy

12/30/2010 at 07:56AM

39
#197 - Andrew McDonough / @andrewmcdonough

12/29/2010 at 06:57PM

39
#198 - Joe Hassick / @jhassick

12/29/2010 at 07:25PM

39
#199 - editor3D / @editor3D

11/13/2018 at 05:48PM

40
#200 - Pedro Moreira Santos / @pedromsantos

12/29/2010 at 09:33PM

40
#201 - Guillaume Bonnoron / @gbonnoron

12/30/2010 at 05:24PM

40
#202 - William Shackleton / @wshackleton

12/30/2010 at 09:32PM

45
#203 - Rolf K. / @mindleftbody

06/17/2011 at 02:46PM

48
#204 - Tom Adams / @holizz

12/29/2010 at 07:16PM

49
#205 - Austin Ware / @AustinWare17

03/13/2018 at 04:09AM