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 244 remaining solutions by signing in and submitting your own entry
#245 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

245 active golfers, 498 entries

Leaderboard (lowest score wins):
18
#151 - russellzhaomao / @russellzhaomao

06/01/2022 at 02:33AM

18
#152 - Qing Liu / @poeminlash

07/23/2022 at 02:24AM

18
#153 - Brandon / @Brandon10678836

08/31/2022 at 11:37PM

18
#154 - Zion Park / @zionpark93

01/09/2023 at 03:09PM

18
#155 - MC / @MC88686523

03/25/2023 at 04:28PM

18
#156 - Paul Molloy / @paulsmolloy

10/28/2023 at 02:44PM

18
#157 - Yash Kulshrestha / @YashdalfTheGray

04/20/2024 at 08:26PM

18
#158 - Peppa Pig / @PeppaPi95550250

06/02/2024 at 08:22AM

18
#159 - Justin Choi / @Mcthecuber

07/03/2024 at 03:44PM

18
#160 - tPenguinLTG / @tpenguinltg

07/05/2024 at 08:25AM

18
#161 - Kasper B. Graversen / @kbilsted

07/06/2024 at 11:42AM

18
#162 - muhahm / @muhahm263029

08/10/2024 at 03:25AM

18
#163 - George Oversby / @GeorgeOversby

08/16/2024 at 03:54PM

18
#164 - nickGPT / @nickandbro

08/28/2024 at 11:58PM

18
#165 - KoroneListener / @KoroneListener

09/04/2024 at 08:09AM

18
#166 - countime / @countime

11/28/2024 at 02:39AM

18
#167 - bounce114 / @bounce114

12/04/2024 at 02:35AM

19
#168 - arungn / @arungn

12/29/2010 at 06:35PM

19
#169 - Matt Mendell / @mpmendell

12/29/2010 at 07:00PM

19
#170 - clint tseng / @cxlt

12/29/2010 at 07:08PM

19
#171 - Aaron Bull Schaefer / @elasticdog

12/29/2010 at 07:24PM

19
#172 - drio / @drio

01/02/2011 at 09:12PM

19
#173 - Toto l'haricot / @nico_le_terribl

01/09/2011 at 12:02PM

19
#174 - xhtmlforum / @xhtmlforum

01/25/2011 at 02:55PM

19
#175 - Matthieu Honel / @ocus

01/29/2011 at 01:02PM

19
#176 - gruolin / @gruolin

11/05/2011 at 07:54AM

19
#177 - Nicolas Friedli / @NicolasFriedli

10/29/2012 at 10:13PM

19
#178 - Kathryn / @hartknyx

05/21/2013 at 06:58AM

19
#179 - Oliver Christ / @0liverChrist

10/16/2013 at 09:41PM

19
#180 - Ram Tamtam / @ramtamtamtam

07/02/2014 at 01:40PM