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

1018 active golfers, 4117 entries

Leaderboard (lowest score wins):
31
#931 - Wojciech Matuszewski / @wm_matuszewski

01/03/2021 at 05:07AM

31
#932 - Flor Zanetta / @flor_z

03/08/2021 at 07:41PM

31
#933 - Pavlo Ravliv / @PRavliv

03/27/2022 at 08:25PM

32
#934 - manfred knapp / @fred_pooshka

08/18/2020 at 08:39PM

32
#935 - Lucas_Elsen / @DuVrangrGata18

09/19/2020 at 11:30AM

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

01/01/2021 at 06:39PM

32
#937 - 김광훈 / @thinkliquid1

01/14/2021 at 02:23AM

33
#938 - Егор / @rxLmBbiP48E21tx

08/19/2020 at 10:20AM

33
#939 - Tokunaga Isa / @Lajansaa

09/12/2020 at 04:43PM

33
#940 - Ryan / @Ryan63088464

09/13/2020 at 07:08AM

33
#941 - Victor Liu / @alsoMee2

09/19/2020 at 02:29AM

33
#942 - fruitydeer / @fruitydeer

12/23/2020 at 08:58AM

33
#943 - Kapildev Neupane / @KapildevNeupane

12/29/2020 at 03:04AM

33
#944 - variable-pitch-mode / @ModePitch

01/04/2021 at 03:10AM

33
#945 - panakin skywalker / @_j3ffrey

01/25/2021 at 06:57AM

34
#946 - Chris Larkin / @Cupcakus

08/11/2020 at 11:15AM

34
#947 - dzungtran / @dzungtran89

09/18/2020 at 04:17PM

34
#948 - Victor Tortolero / @MightyPenguinV

01/26/2021 at 07:43PM

35
#949 - Chinmay Dalal / @p00fd

08/14/2020 at 03:48PM

35
#950 - Anirudh Agrawal / @agrwlanirudh

08/28/2020 at 10:16AM

35
#951 - hp / @tweetsbyhp77

09/12/2020 at 02:13PM

35
#952 - Christopher MCA / @christopherMCA

10/07/2020 at 06:58PM

35
#953 - MichiSora / @MichiSora2

10/14/2020 at 08:43PM

35
#954 - Grunde Waag / @grundew

12/16/2020 at 10:04PM

35
#955 - Voigt Kampf / @change1ing

12/27/2020 at 12:20AM

36
#956 - Kenny Nguyen / @KennyNg72375669

08/05/2020 at 08:44AM

36
#957 - invalidatedCash / @InvalidatedC

08/11/2020 at 09:14PM

36
#958 - 伟哥 / @w15659018558

09/07/2020 at 01:28AM

36
#959 - Flatte / @flatte_exe

10/07/2020 at 02:24AM

36
#960 - Julia / @Julia59821618

12/02/2020 at 12:53AM