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 242 remaining solutions by signing in and submitting your own entry
#243 Ryan / @Rdgy567889 - Score: 78 - 05/17/23 @ 19:53
4jf#d$aTCPSE<BS>erver(a<BS>ADDR, SimpleHTTPReau<BS><BS>questHqndl<BS><BS><BS><BS>andler)<Esc>ax<BS><Esc>d$a)<Esc>:wq<CR>

0 comments


Created by: @wolever

243 active golfers, 494 entries

Leaderboard (lowest score wins):
18
#1 - kana / @kana1

12/29/2010 at 06:51PM

18
#2 - Rémi Prévost / @remi

12/29/2010 at 06:53PM

18
#3 - Austin Taylor / @austintaylor

12/29/2010 at 07:51PM

18
#4 - Mortimerj / @mortimerj

12/29/2010 at 08:33PM

18
#5 - Mike Plotz / @antisuji

12/29/2010 at 09:02PM

18
#6 - Marian Schubert / @MarianSchubert

12/29/2010 at 09:23PM

18
#7 - Adam Pohorecki / @apohorecki

12/29/2010 at 09:30PM

18
#8 - uuu / @uu59

12/29/2010 at 09:55PM

18
#9 - PA Parent / @paparent

12/30/2010 at 12:49AM

18
#10 - Isaiah Damron / @Aenidye

12/30/2010 at 01:04AM

18
#11 - Matthew Draper / @_matthewd

12/30/2010 at 01:11AM

18
#12 - h_east (トロッコ6個) / @h_east

12/30/2010 at 02:17AM

18
#13 - Josh Weinberg / @jcweinberg

12/30/2010 at 04:48AM

18
#14 - Addisu Taddese / @azeey

12/30/2010 at 06:33AM

18
#15 - Akira Matsuda / @a_matsuda

12/30/2010 at 06:45AM

18
#16 - Dan Smith / @untermrad

12/30/2010 at 09:07AM

18
#17 - Kornél Lugosi / @Coornail

12/30/2010 at 09:50AM

18
#18 - Ankit Shankar / @thelastnode

12/30/2010 at 09:51AM

18
#19 - Lee Jarvis / @lee_jarvis

12/30/2010 at 10:24AM

18
#20 - Ben Lenarts / @benlenarts

12/30/2010 at 10:50AM

18
#21 - Behnam Esfahbod / @zwnj

12/30/2010 at 12:05PM

18
#22 -  Ikhsan Maulana / @ixandidu

12/30/2010 at 12:28PM

18
#23 - Benoit D / @Anbcorp

12/30/2010 at 12:39PM

18
#24 - Kevin Merlin / @mp3merlin

12/30/2010 at 01:18PM

18
#25 - Cyril Pascal / @paxal

12/30/2010 at 05:45PM

18
#26 - Marc Lacoursière / @RooSoft

12/30/2010 at 06:39PM

18
#27 - Juan C. Muller / @juancmuller

12/31/2010 at 03:47AM

18
#28 - Will Gray / @graywh

12/31/2010 at 07:33PM

18
#29 - Casey W Crites / @caseycrites

12/31/2010 at 07:34PM

18
#30 - Balkoth / @_Balkoth_

12/31/2010 at 11:35PM