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 5f1e0217becb80000692b9c4

Rural Post

Simple challenge to remove all but the post code on each line

Start file
RD 5 Gore 9775
RD 6 Gore 9776
RD 7 Gore 9777
RD 1 Great Barrier Island 0991
RD 1 Greta Valley 7387
RD 1 Greytown 5794
RD 1 Hamilton 3281
RD 2 Hamilton 3282
End file
9775
9776
9777
0991
7387
5794
3281
3282

View Diff

1,8c1,8
< RD 5 Gore 9775
< RD 6 Gore 9776
< RD 7 Gore 9777
< RD 1 Great Barrier Island 0991
< RD 1 Greta Valley 7387
< RD 1 Greytown 5794
< RD 1 Hamilton 3281
< RD 2 Hamilton 3282
---
> 9775
> 9776
> 9777
> 0991
> 7387
> 5794
> 3281
> 3282

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 1009 remaining solutions by signing in and submitting your own entry
#1010 yuhung / @koba_taiwan - Score: 349 - 12/25/20 @ 05:31
<Esc><Esc><Esc><0xef><0xbc><0x9a><0xef><0xbc><0x81><Esc><0xe3><0x84><0xa8><0xe3><0x84><0x9c><Esc>jjjjjjj<Esc>:1<BS>1,$s/<BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><Esc>kkkkkkkkkkkkkkk0<Esc><Esc>:%s/&<BS>^.//<CR><Esc>u<Esc>:%s/<Esc><Esc>:q!<BS><BS><BS><Esc>kjjjjjjjjjjjj<Esc><Esc><Esc>kkkkkkkkkkkkkkkkkk<C-V>jjjjjjjllkkkkkkkllllll<Esc>kjjkk0<Esc>:%s/[]<Left>^_s*<Right>(<BS>*<Esc>k<Esc>:s/<BS><BS>%s/<BS><BS><BS>%s/<Esc>kklllllllllllllllllllllljkA<Esc>jjkk<Esc>/<Esc>:s<BS>%s//s<BS><BS>\/s<BS><BS><BS>/s<BS><BS>/t<BS><BS>\_s<BS><BS>s<BS><BS>[]<Left>^\s<Right>*]<BS>\n<BS><BS><BS><Left><Left><Left><Left><Left>*<BS>.*<Right><Right><Right><Right><Left><Left><Right><Right><BS>n<Left><Right><Right>*<BS><Left><Left><Left><BS><Right><Right><BS>s<Right><Left><Left><Left><Left><BS><BS><Right><Right><Right><Right><BS><BS><BS><BS>\s<Left><Left>.*<Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>//g<CR><Esc>:wq!<CR>

0 comments


Created by: @ctmusicnz

1010 active golfers, 4087 entries

Leaderboard (lowest score wins):
29
#901 - Matthieu Cneude / @Cneude_Matthieu

10/07/2020 at 12:17PM

29
#902 - Артур Черкашин / @s5chjQMm1xdHduE

11/03/2020 at 11:02AM

29
#903 - Andrew / @as188226349

11/08/2020 at 11:46AM

29
#904 - Daniel Latzer / @tournqat

12/02/2020 at 04:41PM

29
#905 - said / @said13664960

12/15/2020 at 06:58PM

29
#906 - Махмудов Физули / @neosat55

01/21/2021 at 05:08PM

29
#907 - Peter Lukesch / @LukeschPeter

01/23/2021 at 02:16PM

29
#908 - Naja / @ismirvurscht

01/25/2021 at 08:28AM

29
#909 - Mark / @markbaraban

03/31/2022 at 10:05AM

30
#910 - 彭驰Yo-Ki-O / @pengchi1244

07/30/2020 at 01:38AM

30
#911 - Shrutesh Patil / @patil_shrutesh

08/01/2020 at 07:27PM

30
#912 - binayak tiwari / @bintiw

08/03/2020 at 12:29AM

30
#913 - Fullstacks / @fullstacks_app

09/03/2020 at 10:11AM

30
#914 - MV / @MV13499885

09/19/2020 at 07:37PM

30
#915 - Hoang Ho / @HoangHo32183538

09/25/2020 at 09:47PM

30
#916 - 鐵屋 / @tiewuz

01/01/2021 at 06:52PM

30
#917 - Matan Kushner / @matchai

01/20/2021 at 05:02PM

30
#918 - Jonas Pauthier / @Jonas_Pauthier

02/25/2021 at 09:44AM

31
#919 - Thiago Becker 😷 / @beckert

07/31/2020 at 12:22PM

31
#920 - Aiyan Jiang / @AiyanJiang

09/03/2020 at 01:47PM

31
#921 - Anton Akhiar / @antonakhiar

10/04/2020 at 09:51AM

31
#922 - Quim Ortiz de Haro / @QuimOrtizdeHaro

11/01/2020 at 05:09PM

31
#923 - Wojciech Matuszewski / @wm_matuszewski

01/03/2021 at 05:07AM

31
#924 - Flor Zanetta / @flor_z

03/08/2021 at 07:41PM

31
#925 - Pavlo Ravliv / @PRavliv

03/27/2022 at 08:25PM

32
#926 - manfred knapp / @fred_pooshka

08/18/2020 at 08:39PM

32
#927 - Lucas_Elsen / @DuVrangrGata18

09/19/2020 at 11:30AM

32
#928 - Donald J. Quixote (LOSER) / @Unabogie

01/01/2021 at 06:39PM

32
#929 - 김광훈 / @thinkliquid1

01/14/2021 at 02:23AM

33
#930 - Егор / @rxLmBbiP48E21tx

08/19/2020 at 10:20AM