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

1040 active golfers, 4224 entries

Leaderboard (lowest score wins):
41
#991 - AllMicroscope.com / @allmicroscope

08/23/2020 at 11:29PM

41
#992 - victor / @victor20145300

08/24/2020 at 03:15PM

41
#993 - Ermias Habtegabr / @EHabtegabr

12/17/2020 at 11:32AM

41
#994 - dewolfe / @dewolfe

01/12/2021 at 01:41PM

43
#995 - Adrien Guillement / @AdrienGuillem

08/06/2020 at 10:33AM

44
#996 - jack lee / @JackJfly690

12/19/2020 at 02:17AM

45
#997 - SD / @byds0

09/16/2020 at 03:25AM

45
#998 - Phi / @Phi_W5

12/27/2020 at 11:03AM

46
#999 - StickyPolo / @PoloSticky

11/07/2020 at 06:23PM

46
#1000 - jfroffice / @jfroffice

01/13/2021 at 01:09PM

46
#1001 - Zach Calhoun / @ZachDCalhoun

03/26/2022 at 06:04PM

47
#1002 - . / @lacksommelier

10/15/2020 at 09:43AM

47
#1003 - john smith / @johnmicheaq

11/02/2020 at 03:26AM

50
#1004 - Dinaf / @Dinaf74370383

02/15/2021 at 10:51PM

51
#1005 - Ridham Karia / @ridham_karia

08/28/2020 at 05:42AM

52
#1006 - Serik / @SerikIdrissov

07/30/2020 at 07:56AM

52
#1007 - JasonTu / @aedmontu

09/24/2020 at 09:13AM

52
#1008 - Alex Vincent-Hill / @AlexVincentHil1

10/13/2020 at 11:31PM

55
#1009 - Aaron W / @aarwei

08/28/2020 at 01:16AM

56
#1010 - Julio Castro / @JulioCastro98

09/28/2020 at 04:26PM

57
#1011 - 莊秉澂 / @cYZAfEdeAPRsh7G

09/18/2020 at 11:35AM

58
#1012 - Sujit Molleti / @SujitMolleti

09/01/2020 at 07:30AM

60
#1013 - Davarco / @Davarco2

03/02/2022 at 07:41AM

60
#1014 - aravindthangavel / @aravindpt

04/12/2022 at 11:20PM

61
#1015 - José Luis R. 🇲🇽 / @SachielCode

09/15/2020 at 04:49PM

61
#1016 - Kevin Linnane / @linnanekevin07

12/30/2020 at 04:46PM

64
#1017 - projectDx / @Noritor

01/26/2021 at 11:30AM

66
#1018 - Juan R Leon / @JuanRLeon1

02/11/2021 at 02:29PM

68
#1019 - Khalin George / @Khalin_George

12/02/2020 at 06:45PM

82
#1020 - trtrhtrh / @trtrhtrh

12/12/2020 at 09:57PM