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
#61 - Wesley Wong / @wesleymwwong

01/30/2011 at 10:48AM

18
#62 - Joost / @vlabakje

02/21/2011 at 04:15PM

18
#63 - vg / @vimgolfer

02/26/2011 at 05:12PM

18
#64 - Paweu1kZ nbNeyIhH / @yUQlwsFpRSzxJFh

03/07/2011 at 01:32AM

18
#65 - Avinash Baliga / @avinashbaliga

03/25/2011 at 01:19AM

18
#66 - Dragan Cvetinovic / @kawkafi

05/22/2011 at 04:03PM

18
#67 - mightyfoo / @mightyfoo

05/26/2011 at 12:10PM

18
#68 - Justin Love / @wondible

06/16/2011 at 10:22PM

18
#69 - Lauri Tirkkonen / @lotheac

07/01/2011 at 10:09PM

18
#70 - Hu Junfeng / @junfeng

07/18/2011 at 08:43AM

18
#71 - Dave / @zzdave13

07/31/2011 at 01:57PM

18
#72 - Andrey Ivanov / @Bytamine

08/12/2011 at 02:28PM

18
#73 - Neil / @spameldoon

08/21/2011 at 11:12AM

18
#74 - Trevor Powell / @DoomedBunnies

11/29/2011 at 07:32AM

18
#75 - You-Siang Lin / @yslinnctu

12/01/2011 at 01:22PM

18
#76 - William Dunand / @wdunand

12/02/2011 at 02:33AM

18
#77 - Xavier Nayrac / @lkdjiin

12/30/2011 at 01:29PM

18
#78 - Christopher Brew / @Seph1rothVII

01/06/2012 at 11:32PM

18
#79 - Pei-Lun Lee / @ypcatw

01/19/2012 at 10:27AM

18
#80 - Renat Aksitov / @Korvin79

02/02/2012 at 02:42AM

18
#81 - Rändöm Tester / @mevcar

02/12/2012 at 04:19PM

18
#82 - 無ん垢の叫び / @john_ababa

02/23/2012 at 10:59AM

18
#83 - Michał Wróbel / @sparrovv_

03/12/2012 at 10:12PM

18
#84 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 11:12PM

18
#85 - Rod Knowlton / @codelahoma

05/27/2012 at 07:33PM

18
#86 - Urtica dioica / @udioica

06/11/2012 at 02:43AM

18
#87 - Kerson Hsiao / @KersonHsiao

07/09/2012 at 10:06AM

18
#88 - annagrammatica1 / @annagrammatica1

08/02/2012 at 06:31AM

18
#89 - Arto Vuori / @dhpe

08/30/2012 at 10:01PM

18
#90 - Conner McDaniel / @connermcd

09/19/2012 at 02:28AM