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

1017 active golfers, 4115 entries

Leaderboard (lowest score wins):
37
#961 - mathieu524287 / @mathieu524287

12/20/2020 at 11:38AM

39
#962 - eastarpen / @eastarpen

02/26/2022 at 08:22AM

40
#963 - Logan CJ Rice / @lcjrice

08/01/2020 at 05:45PM

40
#964 - Ifeoluwa Lawal / @IfeLawl

10/01/2020 at 04:00PM

40
#965 - Mohammed Gaber / @GaberM

12/17/2020 at 05:57PM

40
#966 - Pranshu Goyal / @PranshuGoyal

01/23/2021 at 07:19PM

41
#967 - Amit Jain / @__amitjain

08/18/2020 at 08:40PM

41
#968 - AllMicroscope.com / @allmicroscope

08/23/2020 at 11:29PM

41
#969 - victor / @victor20145300

08/24/2020 at 03:15PM

41
#970 - Ermias Habtegabr / @EHabtegabr

12/17/2020 at 11:32AM

41
#971 - dewolfe / @dewolfe

01/12/2021 at 01:41PM

43
#972 - Adrien Guillement / @AdrienGuillem

08/06/2020 at 10:33AM

44
#973 - jack lee / @JackJfly690

12/19/2020 at 02:17AM

45
#974 - SD / @byds0

09/16/2020 at 03:25AM

45
#975 - Phi / @Phi_W5

12/27/2020 at 11:03AM

46
#976 - StickyPolo / @PoloSticky

11/07/2020 at 06:23PM

46
#977 - jfroffice / @jfroffice

01/13/2021 at 01:09PM

46
#978 - Zach Calhoun / @ZachDCalhoun

03/26/2022 at 06:04PM

47
#979 - achistdochegal / @talisos

10/15/2020 at 09:43AM

47
#980 - john smith / @johnmicheaq

11/02/2020 at 03:26AM

50
#981 - Dinaf / @Dinaf74370383

02/15/2021 at 10:51PM

51
#982 - Ridham Karia / @ridham_karia

08/28/2020 at 05:42AM

52
#983 - Serik / @SerikIdrissov

07/30/2020 at 07:56AM

52
#984 - JasonTu / @aedmontu

09/24/2020 at 09:13AM

52
#985 - Alex Vincent-Hill / @AlexVincentHil1

10/13/2020 at 11:31PM

55
#986 - Aaron W / @aarwei

08/28/2020 at 01:16AM

56
#987 - Julio Castro / @JulioCastro98

09/28/2020 at 04:26PM

57
#988 - 莊秉澂 / @cYZAfEdeAPRsh7G

09/18/2020 at 11:35AM

58
#989 - Sujit Molleti / @SujitMolleti

09/01/2020 at 07:30AM

60
#990 - Davarco / @Davarco2

03/02/2022 at 07:41AM