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
#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

18
#139 - Nick Yeow / @nickyeow

05/23/2019 at 12:12PM

18
#140 - Chester Yap / @Chest_ErYap

08/11/2019 at 11:41PM

18
#141 - Lory / @Lory46845742

12/25/2019 at 03:23PM

18
#142 - Johannes Riecken / @rubystallion

01/15/2020 at 08:40PM

18
#143 - RockerZZY / @rocker_zzy

07/05/2020 at 12:02PM

18
#144 - Владек / @escept1c

08/12/2020 at 02:41PM

18
#145 - Salvador Tojo Quintela / @SalvadorTojo

10/09/2021 at 07:50AM

18
#146 - POSIX / @po6ix

01/23/2022 at 10:47AM

18
#147 - shahanavaz m / @shahanavazm

02/14/2022 at 03:00AM

18
#148 - Jean George / @JeanGeo20504212

05/23/2022 at 03:13PM

18
#149 - quemeraisc / @quemeraisc

05/24/2022 at 12:55PM

18
#150 - x03n046 / @x03n046

05/26/2022 at 08:46AM