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
#91 - Vim rocks / @vimrocks

10/08/2012 at 07:40PM

18
#92 - Tom Cammann / @tea_sea

10/11/2012 at 10:29AM

18
#93 - Marcin Sza / @coot_

12/05/2012 at 04:08PM

18
#94 - Hubba / @HubbaBubbaFett

12/25/2012 at 01:16PM

18
#95 - JonLz / @LzJon

12/26/2012 at 08:32PM

18
#96 - a24f0600 / @a24f0600

01/17/2013 at 04:37PM

18
#97 - Yann Moisan / @YannMoisan

02/03/2013 at 08:10PM

18
#98 - Adam Bell / @adamgbell

02/21/2013 at 10:30PM

18
#99 - Tyler / @tylerbindon

04/01/2013 at 04:35AM

18
#100 - Brent Carmer / @brent_carmer

04/13/2013 at 05:09AM

18
#101 - Justin / @justinjaffray

04/24/2013 at 01:26PM

18
#102 - Gtranbot / @gtranbot

04/27/2013 at 09:55AM

18
#103 - Marco Hinz / @_mhinz_

05/21/2013 at 03:00PM

18
#104 - Tresifina / @Tresifina

05/23/2013 at 04:14AM

18
#105 - Woojung Kim 김우중 / @_kimwz

07/17/2013 at 10:21AM

18
#106 - Petro Тrouq / @zulolosi

07/21/2013 at 08:02PM

18
#107 - Chris Brown / @engineercyb

08/06/2013 at 11:49PM

18
#108 - James / @Dronak

09/05/2013 at 06:04PM

18
#109 - foo / @foo88832727

10/19/2013 at 05:33PM

18
#110 - Zach Kemp / @zvksf

12/20/2013 at 10:15PM

18
#111 - Daniel Jonsson / @DanielJonss

01/21/2014 at 04:51PM

18
#112 - cj / @cj01101

02/03/2014 at 11:33PM

18
#113 - Joonas Pihlajamaa / @jokkebk

02/21/2014 at 11:34AM

18
#114 - Xelrifos / @Xelrifos

02/21/2014 at 06:52PM

18
#115 - Tom Gilligan / @sargegood

05/06/2014 at 10:58PM

18
#116 - John Braxler / @braxler

05/18/2014 at 05:30PM

18
#117 - かしゅーなっつ@修行中 / @kashew_nuts

08/02/2014 at 08:33AM

18
#118 - Caek / @Caek_

08/15/2014 at 05:39AM

18
#119 - w1zeman1p / @wizemanip

11/06/2014 at 06:07AM

18
#120 - David Nguyen / @nguydavi

06/13/2015 at 01:51PM