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 4fca701fd3a0d40001000074

Remove noise from HTTP log

This piece of log (from the year 2000) contains some irrelevant data. We only want to see the HTTP method and resource.

Start file
fcrawler.looksmart.com - - [26/Apr/2000:00:00:12 -0400] "GET /contacts.html HTTP/1.0" 200 4595 "-" "FAST-WebCrawler/2.1-pre2 (ashen@looksmart.net)"
fcrawler.looksmart.com - - [26/Apr/2000:00:17:19 -0400] "GET /news/news.html HTTP/1.0" 200 16716 "-" "FAST-WebCrawler/2.1-pre2 (ashen@looksmart.net)"
ppp931.on.bellglobal.com - - [26/Apr/2000:00:16:12 -0400] "GET /download/windows/asctab31.zip HTTP/1.0" 200 1540096 "http://www.htmlgoodies.com/downloads/freeware/webdevelopment/15.html" "Mozilla/4.7 [en]C-SYMPA  (Win95; U)"
123.123.123.123 - - [26/Apr/2000:00:23:48 -0400] "GET /pics/wpaper.gif HTTP/1.0" 200 6248 "http://www.jafsoft.com/asctortf/" "Mozilla/4.05 (Macintosh; I; PPC)"
123.123.123.123 - - [26/Apr/2000:00:23:47 -0400] "GET /asctortf/ HTTP/1.0" 200 8130 "http://search.netscape.com/Computers/Data_Formats/Document/Text/RTF" "Mozilla/4.05 (Macintosh; I; PPC)"
123.123.123.123 - - [26/Apr/2000:00:23:48 -0400] "GET /pics/5star2000.gif HTTP/1.0" 200 4005 "http://www.jafsoft.com/asctortf/" "Mozilla/4.05 (Macintosh; I; PPC)"
123.123.123.123 - - [26/Apr/2000:00:23:50 -0400] "GET /pics/5star.gif HTTP/1.0" 200 1031 "http://www.jafsoft.com/asctortf/" "Mozilla/4.05 (Macintosh; I; PPC)"
123.123.123.123 - - [26/Apr/2000:00:23:51 -0400] "GET /pics/a2hlogo.jpg HTTP/1.0" 200 4282 "http://www.jafsoft.com/asctortf/" "Mozilla/4.05 (Macintosh; I; PPC)"
123.123.123.123 - - [26/Apr/2000:00:23:51 -0400] "GET /cgi-bin/newcount?jafsof3&width=4&font=digital&noshow HTTP/1.0" 200 36 "http://www.jafsoft.com/asctortf/" "Mozilla/4.05 (Macintosh; I; PPC)"
End file
GET /contacts.html
GET /news/news.html
GET /download/windows/asctab31.zip
GET /pics/wpaper.gif
GET /asctortf/
GET /pics/5star2000.gif
GET /pics/5star.gif
GET /pics/a2hlogo.jpg
GET /cgi-bin/newcount?jafsof3&width=4&font=digital&noshow

View Diff

1,9c1,9
< fcrawler.looksmart.com - - [26/Apr/2000:00:00:12 -0400] "GET /contacts.html HTTP/1.0" 200 4595 "-" "FAST-WebCrawler/2.1-pre2 (ashen@looksmart.net)"
< fcrawler.looksmart.com - - [26/Apr/2000:00:17:19 -0400] "GET /news/news.html HTTP/1.0" 200 16716 "-" "FAST-WebCrawler/2.1-pre2 (ashen@looksmart.net)"
< ppp931.on.bellglobal.com - - [26/Apr/2000:00:16:12 -0400] "GET /download/windows/asctab31.zip HTTP/1.0" 200 1540096 "http://www.htmlgoodies.com/downloads/freeware/webdevelopment/15.html" "Mozilla/4.7 [en]C-SYMPA  (Win95; U)"
< 123.123.123.123 - - [26/Apr/2000:00:23:48 -0400] "GET /pics/wpaper.gif HTTP/1.0" 200 6248 "http://www.jafsoft.com/asctortf/" "Mozilla/4.05 (Macintosh; I; PPC)"
< 123.123.123.123 - - [26/Apr/2000:00:23:47 -0400] "GET /asctortf/ HTTP/1.0" 200 8130 "http://search.netscape.com/Computers/Data_Formats/Document/Text/RTF" "Mozilla/4.05 (Macintosh; I; PPC)"
< 123.123.123.123 - - [26/Apr/2000:00:23:48 -0400] "GET /pics/5star2000.gif HTTP/1.0" 200 4005 "http://www.jafsoft.com/asctortf/" "Mozilla/4.05 (Macintosh; I; PPC)"
< 123.123.123.123 - - [26/Apr/2000:00:23:50 -0400] "GET /pics/5star.gif HTTP/1.0" 200 1031 "http://www.jafsoft.com/asctortf/" "Mozilla/4.05 (Macintosh; I; PPC)"
< 123.123.123.123 - - [26/Apr/2000:00:23:51 -0400] "GET /pics/a2hlogo.jpg HTTP/1.0" 200 4282 "http://www.jafsoft.com/asctortf/" "Mozilla/4.05 (Macintosh; I; PPC)"
< 123.123.123.123 - - [26/Apr/2000:00:23:51 -0400] "GET /cgi-bin/newcount?jafsof3&width=4&font=digital&noshow HTTP/1.0" 200 36 "http://www.jafsoft.com/asctortf/" "Mozilla/4.05 (Macintosh; I; PPC)"
---
> GET /contacts.html
> GET /news/news.html
> GET /download/windows/asctab31.zip
> GET /pics/wpaper.gif
> GET /asctortf/
> GET /pics/5star2000.gif
> GET /pics/5star.gif
> GET /pics/a2hlogo.jpg
> GET /cgi-bin/newcount?jafsof3&width=4&font=digital&noshow

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 185 remaining solutions by signing in and submitting your own entry
#186 pete / peteches - Score: 17 - 02/23/14 @ 16:12
qqdf"2WhDj0q8@qZZ

0 comments


#187 Felipe Jaramillo F / mrfelipe - Score: 17 - 04/03/14 @ 03:58
Gqqdf"2WDx-q8@qZZ

0 comments


#188 Kyle Travis / kmakai - Score: 17 - 05/16/14 @ 22:20
qqdf"2f Dj^q8@qZZ

0 comments


#189 ひげまにや / higemaniya - Score: 17 - 07/03/14 @ 00:26
:%norm df"2f D<CR>ZZ

0 comments


#190 Justin Beaudry / JustinNBeaudry - Score: 17 - 07/08/14 @ 22:36
qqdtG2f D0jq8@qZZ

0 comments


#191 Patrick Pitoscia / Patrick03960431 - Score: 17 - 08/16/14 @ 03:54
qq0dtG2f Djq9@qZZ

0 comments


#192 chaffinch / chaffinch - Score: 17 - 08/25/14 @ 15:41
:%norm df"2f D<CR>ZZ

0 comments


#193 Justin Knag / justinknag - Score: 17 - 08/28/14 @ 15:24
qadf"2f Dj0q8@aZZ

0 comments


#194 Gerald Tilma / GeraldTilma - Score: 17 - 10/22/15 @ 02:15
qqdf"fHDDj0q8@qZZ

0 comments


#195 Matt McNeil / mmcnl - Score: 17 - 11/11/15 @ 09:08
qqdtG2ElDj0q9@qZZ

0 comments


#196 Etienne Tremel / etiennetremel - Score: 17 - 02/09/16 @ 21:18
qqdf"2f Dj^q8@qZZ

0 comments


#197 Ryan van Rensburg / rdvr001 - Score: 17 - 07/23/16 @ 10:20
qqdtGtHd$j^q8@qZZ

0 comments


#198 jn / j1357924 - Score: 17 - 09/14/16 @ 19:50
qq0df"2WDxjq8@qZZ

0 comments


#199 phucvin / phucvin - Score: 17 - 02/15/18 @ 05:13
:%norm df"2f D<CR>ZZ

0 comments


#200 Dr Rev J. '𝕵. 𝕶𝖎𝖗𝖈𝖍𝖆𝖗𝖙𝖟' Kirchartz / JKirchartz - Score: 17 - 06/15/18 @ 18:47
:%norm df"f ;D<CR>ZZ

0 comments


#201 Marius Jurgelenas / MarenasLT - Score: 17 - 06/21/18 @ 12:38
qqdtG2f Dj^q8@qZZ

0 comments


#202 Peter Schlette / pschlette - Score: 18 - 08/01/12 @ 03:17
qqdtG2f D<Esc>j0q8@qZZ

0 comments


#203 Mihai Mazilu / mtmazilu - Score: 18 - 09/10/12 @ 20:27
qqyi"0PBDxj@qq@qZZ

0 comments


#204 Justin / justinjaffray - Score: 18 - 04/24/13 @ 01:47
qqdf"WWhDj0@qq@qZZ

0 comments


#205 Raphael / rnstlr - Score: 18 - 12/01/13 @ 15:45
qqdf"2f d$j0q8@qZZ

0 comments


#206 CHIP CASTLE / chipcastle - Score: 18 - 12/28/13 @ 02:58
qqdf"fHhD0jq9@q:x<CR>

0 comments


#207 ryk / rykarn - Score: 18 - 03/29/14 @ 13:53
qqdf"2Whd$j_q8@qZZ

0 comments


#208 Michał Dytko / DytkoM - Score: 18 - 12/28/16 @ 14:07
qqvf"x2Eld$wq8@qZZ

0 comments


#209 Benny Wong / bdotdub - Score: 19 - 04/29/15 @ 20:46
qqvf"d/ H<CR>Dj^q8@qZZ

0 comments


#210 some call me mattp / mattpep - Score: 19 - 05/12/16 @ 23:07
qqdf";d$dF xwq8@qZZ

0 comments


#211 Benjamin Sergeant / bsergean - Score: 20 - 06/05/12 @ 15:17
qqf"ld^f ;d$j0q9@qZZ

0 comments


#212 Paul Gessler / pdgessler - Score: 20 - 06/07/12 @ 03:43
qqf"ld^f ;d$j0q9@qZZ

0 comments


#213 Philippe Creux / pcreux - Score: 20 - 07/13/12 @ 06:48
qadtG/ <CR>nDj^q8@a:wq<CR>

0 comments


#214 Jan Wedekind / wedesoft - Score: 20 - 07/17/12 @ 12:07
qqdf"f"F D^jq8@q:wq<CR>

0 comments


#215 BostX / BostX - Score: 20 - 09/06/12 @ 15:26
qqfGy2t 0D"0pjq8@qZZ

0 comments


#216 lauri lehmijoki / laurilehmijoki - Score: 22 - 06/02/12 @ 20:07
:%norm dtG<CR>:%s/ H.*<CR>ZZ

0 comments


#217 Alan Oliver / alol - Score: 22 - 06/02/12 @ 22:25
qqf"yi"0D"0PF Djq8@qZZ

0 comments


#218 Alec Chen / alec929 - Score: 23 - 11/03/12 @ 12:55
:%s/.*G/G<CR>:%s/ H.*//<CR>ZZ

0 comments


#219 Jason Wolf / zephyr_wolf - Score: 23 - 11/08/12 @ 17:30
:%s/^.\{-}"\| H.*//g<CR>ZZ

0 comments


#220 murmurs / mrmrs_ - Score: 23 - 04/30/14 @ 07:38
qqdf"/HTTP<CR>hDj0q8@q:wq<CR>

0 comments


#221 Esoga Simmons / esogstw - Score: 24 - 06/10/12 @ 07:15
:%s/^.*\(G.*\) H.*/\1<CR>ZZ

0 comments


#222 Carlos Hernando / chernando - Score: 24 - 06/13/12 @ 18:51
:%s+.*"G+G<CR>:%s+ H.*++<CR>ZZ

0 comments


#223 Nicolas Friedli / NicolasFriedli - Score: 24 - 10/29/12 @ 22:27
:%s/.*G/G<CR>:%s/ H.*$//<CR>ZZ

0 comments


#224 Asenar / asenar - Score: 25 - 06/02/12 @ 21:50
:%s#.*\(GET \S*\).*#\1<CR>ZZ

0 comments


#225 Allan Caffee / AllanCaffee - Score: 25 - 08/08/12 @ 07:25
:%s/.*"G/G/<CR>:%s/ H.*//<CR>ZZ

0 comments


#226 はなたん / hntn - Score: 26 - 06/12/12 @ 02:39
:%s/.*"G/G/<CR>:%s/ H.*//g<CR>ZZ

0 comments


#227 Tyler Breisacher / tbreisacher - Score: 26 - 08/26/12 @ 19:08
:%s/.*\(GET \S*\).*/\1/<CR>ZZ

0 comments


#228 Viswanath Sivakumar / viswanathgs - Score: 26 - 08/30/12 @ 21:13
:%s/.*\(GET \S*\).*/\1/<CR>ZZ

0 comments


#229 Denys Zadorozhnyi / greenden - Score: 33 - 06/08/16 @ 17:33
:%s/^.*] "//<CR>:%s/ HTTP,<BS>.*//<CR>:wq<CR>

0 comments


#230 captain_morgan / captain_morgan - Score: 36 - 06/05/12 @ 09:31
:%s/.*\(GET\ \)\(.*\) HTTP.*/\1\2<CR>ZZ

0 comments


#231 Curtis Cooley / CurtisRCooley - Score: 43 - 06/05/12 @ 21:05
:%s/.*\(GET[H]*<Left><Left><Left>^<Right><Right><Right>\).*/\1/<CR>:%s/ $/<CR>:wq<CR>

0 comments


#232 杨晨昀 Yangchenyun / yangchenyun - Score: 500 - 08/08/12 @ 15:05
:%s/()<Left>.+<Right><Left><Left><Left><Left>\v<Right><Right><Right><Right>"G<BS>GET<BS><BS><BS><BS>"(GET<BS><BS><BS>GET \/()<Left>>=<BS><BS><Right><Left>[]<Right><BS><Left><Left><BS><Right>\w.<Right>+)/\1/g<CR>:<Up><Left><Left><Left><Left><Left><Left><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Left><Left><Left><Left><Left>()<Left>>+<BS><BS>.+<Right>\r<BS>n<CR>:<Down><Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS><BS><Right><Right><BS>/<BS>\<Left>\\<Right><Right><Left><Left><Left><Left><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><CR>:<Up><Left><Right><Left><Left><BS><BS><Right><Right><BS>g<Left><Left><Left><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>)<CR><Esc>unj<Esc>jjjjjj,/,<Esc><Esc>,/<Esc><Esc>kkuuujjjjkkkkkkkkkjjjjjkkllllllllllllllllllllllllllllllllllllllllllllllllllll:<Up><Left><Left><Left><Right><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Right><BS><Right><Right><Right><BS><Right><Right><Right><Right><Right> //<CR>:<Up><Left><Left><Left><Left><Left><Right><BS><BS>\/<CR><Esc>u:<Up><Left><Left><Left><Left><Right><Right>\1<CR><Esc>u:<Up><Left><Left><Left><Left><Left><Left>[]<Left>\w<Right>+<CR>:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Right><BS><Left><Left><BS><CR><Esc>u:<Up><Left><Left><Left><Left><Left><Left><Left><BS><BS>[]<Left>^ <CR>:<Up><CR>u:<Up><CR>u:<Up><Left><Left><Left><Left><Left><Left><Left><Right><Right>.+<CR>:w<CR>:wq<CR>

0 comments


Created by: laurilehmijoki

232 active golfers, 576 entries

Leaderboard (lowest score wins):
15
#1 - Mateusz Lenik / _mlen

06/02/2012 at 08:40PM

15
#2 - Tim Chase / gumnos

06/02/2012 at 09:34PM

15
#3 - Urtica dioica / udioica

06/02/2012 at 10:12PM

15
#4 - Justin Love / wondible

06/02/2012 at 11:09PM

15
#5 - 無ん垢の叫び / john_ababa

06/03/2012 at 12:49AM

15
#6 - h_east (トロッコ6個) / h_east

06/03/2012 at 01:58AM

15
#7 - Mattiassich Ákos / mattiassicha

06/03/2012 at 05:58PM

15
#8 - Rod Knowlton / codelahoma

06/03/2012 at 06:33PM

15
#9 - Thomas Schönwälder / Masei1988

06/03/2012 at 06:53PM

15
#10 - mnx / mnxx

06/03/2012 at 09:54PM

15
#11 - Simon Nicolussi / sinic

06/03/2012 at 09:56PM

15
#12 - Federico Galassi / federicogalassi

06/04/2012 at 06:20AM

15
#13 - Sebastian Kusnier / skusnier

06/04/2012 at 07:50PM

15
#14 - Javier Blanco / jbgutierrez

06/04/2012 at 10:51PM

15
#15 - Benoit Mortgat / Benoit_Mortgat

06/05/2012 at 06:48PM

15
#16 - Trevor Powell / DoomedBunnies

06/06/2012 at 07:39AM

15
#17 - shutl_test / shutl_test

06/07/2012 at 12:48PM

15
#18 - utopiah / utopiah

06/08/2012 at 01:16PM

15
#19 - Drew Hannay / drewhannay

06/09/2012 at 07:01AM

15
#20 - ☈king / SharpsawDotOrg

06/10/2012 at 07:47PM

15
#21 - Dave / zzdave13

06/11/2012 at 07:50AM

15
#22 - Joakim L. Engeset / joakim_eng

06/11/2012 at 05:30PM

15
#23 - Josh Steiner / josh_steiner

06/12/2012 at 01:17AM

15
#24 - Mateusz Sójka / yagooar

06/12/2012 at 09:13PM

15
#25 - Jacek Wysocki / ex00

06/14/2012 at 10:45AM

15
#26 - Ryan O'Connell / Salshammath

06/21/2012 at 03:45AM

15
#27 - Greg Sabo / gregsabo

06/21/2012 at 04:07AM

15
#28 - Alexey Morozov / alexeysmorozov

06/23/2012 at 10:30PM

15
#29 - Adam Pohorecki / apohorecki

06/27/2012 at 04:59PM

15
#30 - Raúl Jara / rauljara

07/09/2012 at 11:58PM