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):
18
#151 - russellzhaomao / @russellzhaomao

06/01/2022 at 02:33AM

19
#152 - arungn / @arungn

12/29/2010 at 06:35PM

19
#153 - Matt Mendell / @mpmendell

12/29/2010 at 07:00PM

19
#154 - clint tseng / @cxlt

12/29/2010 at 07:08PM

19
#155 - Aaron Bull Schaefer / @elasticdog

12/29/2010 at 07:24PM

19
#156 - drio / @drio

01/02/2011 at 09:12PM

19
#157 - Toto l'haricot / @nico_le_terribl

01/09/2011 at 12:02PM

19
#158 - xhtmlforum / @xhtmlforum

01/25/2011 at 02:55PM

19
#159 - Matthieu Honel / @ocus

01/29/2011 at 01:02PM

19
#160 - gruolin / @gruolin

11/05/2011 at 07:54AM

19
#161 - Nicolas Friedli / @NicolasFriedli

10/29/2012 at 10:13PM

19
#162 - Kathryn / @hartknyx

05/21/2013 at 06:58AM

19
#163 - Oliver Christ / @0liverChrist

10/16/2013 at 09:41PM

19
#164 - Ram Tamtam / @ramtamtamtam

07/02/2014 at 01:40PM

19
#165 - LC / @leeren

08/24/2014 at 04:59AM

19
#166 - Justin Knag / @justinknag

08/28/2014 at 05:06PM

19
#167 - James Potter / @JJPotterkowski

10/31/2015 at 10:25PM

19
#168 - Walker Boh / @walker_boh

12/15/2015 at 08:45AM

19
#169 - Andreas Siegrist / @andreaszwei

02/01/2022 at 08:17PM

19
#170 - blabla zincou / @BZincou

03/04/2022 at 10:48PM

20
#171 - Jiří Stránský / @jistr

12/29/2010 at 06:19PM

20
#172 - Travis Swicegood / @tswicegood

12/30/2010 at 03:42AM

20
#173 - greg / @kongo2002

12/31/2010 at 12:36AM

20
#174 - Jeroen / @teranex

03/01/2011 at 11:13PM

21
#175 - Rafaël Blais Masson / @rafBM

12/29/2010 at 07:27PM

21
#176 - John Wilger / @jwilger

12/29/2010 at 08:19PM

21
#177 - Indrek Juhkam / @indrekj

12/29/2010 at 11:31PM

21
#178 - Rune Botten / @runeb

12/31/2010 at 03:28PM

22
#179 - David Wolever / @wolever

12/29/2010 at 06:33PM

22
#180 - Dhruva Sagar / @dhruvasagar

12/29/2010 at 07:14PM