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

1106 active golfers, 4515 entries

Leaderboard (lowest score wins):
61
#1081 - Kevin Linnane / @linnanekevin07

12/30/2020 at 04:46PM

64
#1082 - projectDx / @Noritor

01/26/2021 at 11:30AM

66
#1083 - Juan R Leon / @JuanRLeon1

02/11/2021 at 02:29PM

68
#1084 - Khalin George / @Khalin_George

12/02/2020 at 06:45PM

82
#1085 - trtrhtrh / @trtrhtrh

12/12/2020 at 09:57PM

82
#1086 - Jerry John Rawlings / @jerryjrawlings

12/17/2020 at 07:32AM

91
#1087 - LJ / @LiterallyJohnny

12/12/2020 at 06:46PM

98
#1088 - mehrherher / @mehrherher

01/25/2021 at 08:05PM

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

01/16/2021 at 11:16PM

107
#1090 - Naveen S D / @thenaveensd

01/01/2021 at 07:17AM

107
#1091 - Youmu / @___Youmu___

02/08/2022 at 08:50AM

109
#1092 - vfpdev / @vfpdev

01/19/2021 at 09:16PM

111
#1093 - unx / @u73999117

09/27/2020 at 11:52PM

113
#1094 - e / @thestudygoddess

11/16/2020 at 05:46AM

134
#1095 - Die_marlone / @m8rl0n

10/02/2020 at 12:35PM

134
#1096 - nickGPT / @nickandbro

08/24/2024 at 05:01AM

138
#1097 - dobodobo2020 / @dobodobo2020

09/01/2020 at 10:59AM

154
#1098 - DonalD / @Donald2407

12/14/2020 at 12:30PM

166
#1099 - Muradil / @MuradilUdun

10/20/2020 at 03:54PM

166
#1100 - Torikatsu / @torikatsu923

02/12/2021 at 03:46PM

177
#1101 - 지형 유 / @O_hr_good7

04/05/2022 at 07:09PM

188
#1102 - Eren Yenigül / @yenigul_eren

09/13/2020 at 03:32PM

214
#1103 - Владислав / @82smQKgPrrzh33V

08/03/2020 at 04:31PM

258
#1104 - Pierre Bréchet / @brechetp

08/10/2020 at 02:10PM

261
#1105 - Kreuzbergring / @TheSoye

02/15/2021 at 01:06PM

349
#1106 - yuhung / @koba_taiwan

12/25/2020 at 05:31AM