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

938 active golfers, 3797 entries

Leaderboard (lowest score wins):
46
#901 - StickyPolo / @PoloSticky

11/07/2020 at 06:23PM

46
#902 - jfroffice / @jfroffice

01/13/2021 at 01:09PM

47
#903 - achistdochegal / @talisos

10/15/2020 at 09:43AM

47
#904 - john smith / @johnmicheaq

11/02/2020 at 03:26AM

50
#905 - Dinaf / @Dinaf74370383

02/15/2021 at 10:51PM

51
#906 - Ridham Karia / @ridham_karia

08/28/2020 at 05:42AM

52
#907 - Serik / @SerikIdrissov

07/30/2020 at 07:56AM

52
#908 - JasonTu / @aedmontu

09/24/2020 at 09:13AM

52
#909 - Alex Vincent-Hill / @AlexVincentHil1

10/13/2020 at 11:31PM

52
#910 - ゆかお🦩🦩 / @yucao24hours

01/04/2021 at 02:55PM

55
#911 - Aaron W / @aarwei

08/28/2020 at 01:16AM

56
#912 - Julio Castro / @JulioCastro98

09/28/2020 at 04:26PM

57
#913 - 莊秉澂 / @cYZAfEdeAPRsh7G

09/18/2020 at 11:35AM

58
#914 - Sujit Molleti / @SujitMolleti

09/01/2020 at 07:30AM

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

09/15/2020 at 04:49PM

61
#916 - Kevin Linnane / @linnanekevin07

12/30/2020 at 04:46PM

64
#917 - projectDx / @Noritor

01/26/2021 at 11:30AM

66
#918 - Juan R Leon / @JuanRLeon1

02/11/2021 at 02:29PM

68
#919 - Khalin George / @Khalin_George

12/02/2020 at 06:45PM

82
#920 - trtrhtrh / @trtrhtrh

12/12/2020 at 09:57PM

82
#921 - Jerry John Rawlings / @jerryjrawlings

12/17/2020 at 07:32AM

91
#922 - LJ / @LiterallyJohnny

12/12/2020 at 06:46PM

98
#923 - mehrherher / @mehrherher

01/25/2021 at 08:05PM

101
#924 - Juan P. Rocha Amado / @yeipydotnet

01/16/2021 at 11:16PM

107
#925 - Naveen S D / @thenaveensd

01/01/2021 at 07:17AM

109
#926 - vfpdev / @vfpdev

01/19/2021 at 09:16PM

111
#927 - unx / @u73999117

09/27/2020 at 11:52PM

113
#928 - e / @thestudygoddess

11/16/2020 at 05:46AM

134
#929 - Die_marlone / @m8rl0n

10/02/2020 at 12:35PM

138
#930 - dobodobo2020 / @dobodobo2020

09/01/2020 at 10:59AM