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
#121 - Lifepillar / @lifepillar

09/27/2015 at 05:53PM

18
#122 - ltn614 / @ltn614

09/30/2015 at 12:54PM

18
#123 - Jon Krause / @jkrause314

10/18/2015 at 04:56AM

18
#124 - yusukesasaki / @yysaki

04/13/2016 at 02:53PM

18
#125 - Andrii Maksai / @AMaksai

05/09/2016 at 10:27PM

18
#126 - Ikypiky / @nerdbeereis

06/16/2016 at 08:21AM

18
#127 - Will / @obiwan__k3n00bi

08/27/2016 at 02:25AM

18
#128 - Jim Bob / @babyclubber

02/28/2017 at 11:40PM

18
#129 - Daniel / @Daniel00288663

04/05/2017 at 02:58PM

18
#130 - Gurukandhamoorthi / @Gurukandhamoor1

08/14/2017 at 03:09PM

18
#131 - Brandon Blakeley / @zkelvin

11/25/2017 at 05:31AM

18
#132 - Turkey Man / @lvturkeyman

11/28/2017 at 06:30PM

18
#133 - Evgeny`s Kindle / @EvgenyKindle

04/30/2018 at 05:56AM

18
#134 - DHM / @DHM29978992

05/27/2018 at 02:02AM

18
#135 - Arijus / @argshook

08/09/2018 at 12:07PM

18
#136 - Andrius Bentkus / @andriusbentkus

08/09/2018 at 12:58PM

18
#137 - Hugo / @szeyattai

08/20/2018 at 09:15AM

18
#138 - Bart Kleijngeld / @BartKleijngeld

12/24/2018 at 11:34PM

19
#139 - arungn / @arungn

12/29/2010 at 06:35PM

19
#140 - Matt Mendell / @mpmendell

12/29/2010 at 07:00PM

19
#141 - clint tseng / @cxlt

12/29/2010 at 07:08PM

19
#142 - Aaron Bull Schaefer / @elasticdog

12/29/2010 at 07:24PM

19
#143 - drio / @drio

01/02/2011 at 09:12PM

19
#144 - Toto l'haricot / @nico_le_terribl

01/09/2011 at 12:02PM

19
#145 - xhtmlforum / @xhtmlforum

01/25/2011 at 02:55PM

19
#146 - Matthieu Honel / @ocus

01/29/2011 at 01:02PM

19
#147 - gruolin / @gruolin

11/05/2011 at 07:54AM

19
#148 - Nicolas Friedli / @NicolasFriedli

10/29/2012 at 10:13PM

19
#149 - Kathryn / @hartknyx

05/21/2013 at 06:58AM

19
#150 - Oliver Christ / @0liverChrist

10/16/2013 at 09:41PM