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):
18
#31 - Vincent Isambart / @vincentisambart

01/01/2011 at 05:58AM

18
#32 - Richard Sanchez / @vimlearner

01/01/2011 at 06:41AM

18
#33 - dominique pellé / @vimgolfisto

01/01/2011 at 05:22PM

18
#34 - Israel Chauca F. / @Raimondi

01/01/2011 at 09:44PM

18
#35 - Aurélien Delahaye / @alkove

01/02/2011 at 12:27AM

18
#36 - David Lam / @lamdk

01/02/2011 at 08:24AM

18
#37 - Pete Johns / @johnsyweb

01/02/2011 at 11:36AM

18
#38 - Pierre / @Pihour

01/02/2011 at 04:55PM

18
#39 - Paul King / @nrocy

01/02/2011 at 07:49PM

18
#40 - James Cash / @jamesnvc

01/02/2011 at 10:04PM

18
#41 - Clément Nodet / @clementnodet

01/03/2011 at 10:59PM

18
#42 - alex scott / @4l3xsc0tt

01/04/2011 at 12:27AM

18
#43 - Carl Friedrich Bolz / @cfbolz

01/05/2011 at 01:21AM

18
#44 - Danny O'Sullivan / @db0s

01/05/2011 at 11:31AM

18
#45 - Wei Dai / @clvv42

01/06/2011 at 10:35AM

18
#46 - Ujjwol Lamichhane / @Ujjwol

01/06/2011 at 01:29PM

18
#47 - Tim Chase / @gumnos

01/07/2011 at 11:43PM

18
#48 - aimee / @sermoa

01/09/2011 at 04:11PM

18
#49 - Steve Morrow / @yawmark

01/13/2011 at 04:00AM

18
#50 - Francisco Dibar / @frandibar

01/14/2011 at 03:01AM

18
#51 - duckdalbe / @duckdalbe

01/14/2011 at 12:16PM

18
#52 - Thomas Schönwälder / @Masei1988

01/15/2011 at 09:05PM

18
#53 - Stuart Gale / @bishboria

01/16/2011 at 01:10PM

18
#54 - Federico Galassi / @federicogalassi

01/17/2011 at 10:42AM

18
#55 - ls lahrs / @lslah

01/17/2011 at 03:16PM

18
#56 - Eivind Jahren / @HaskellElephant

01/17/2011 at 04:55PM

18
#57 - Chris Waring / @cwaring

01/18/2011 at 12:21AM

18
#58 - Oleg Roshupkin / @jjjahson

01/19/2011 at 05:39AM

18
#59 - Andrey A. Ugolnik / @andreyugolnik

01/19/2011 at 11:40PM

18
#60 - Dezső Zoltán / @zakiazigazi

01/22/2011 at 09:07AM