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):
21
#781 - UberPilot / @uberpilot99

09/15/2020 at 08:44PM

21
#782 - mossycat / @m0ssy_c4t

09/16/2020 at 05:31PM

21
#783 - Roberto Dip / @roperzh

09/19/2020 at 02:39AM

21
#784 - Julien Philippon / @Apoutchika

09/19/2020 at 04:34PM

21
#785 - Sergey Yakovlev / @selfuryon

09/20/2020 at 07:41PM

21
#786 - just here to scroll. / @idontknow0001

10/03/2020 at 11:55AM

21
#787 - ETHEREUM_MINE_TAEMIN / @MineTaemin

10/08/2020 at 02:50PM

21
#788 - Izmoqwy / @Izmoqwy

10/21/2020 at 12:28PM

21
#789 - Joshua Parco / @JoshuaParco2

11/05/2020 at 11:42PM

21
#790 - Akkarin / @akkarinka

11/07/2020 at 07:35AM

21
#791 - windy / @LkzWindy

12/04/2020 at 08:31AM

21
#792 - Steve Lee / @HiWhoareyou12

12/14/2020 at 03:28AM

21
#793 - pong / @mr_pongpong

12/27/2020 at 10:30PM

21
#794 - SpadeAcademic / @AcademicSpade

01/12/2021 at 10:38AM

21
#795 - Devimal Planet / @DevimalPlanet

01/13/2021 at 08:12PM

21
#796 - grsh / @girish_i_am

05/27/2021 at 10:05AM

21
#797 - Nougatine Naja / @NougatineNaja

01/04/2022 at 04:02PM

21
#798 - rappenstein2 / @rappenstein2

01/11/2022 at 10:53PM

22
#799 - Takumi IINO / @troter

07/30/2020 at 09:58AM

22
#800 - JajalĂ­ / @halivert

08/03/2020 at 04:08PM

22
#801 - BryanYan / @BryanGoesPlaces

09/29/2020 at 07:38AM

22
#802 - yaarrr / @v0lko

09/29/2020 at 10:39AM

22
#803 - Armel Chausse / @ArmelChausse

10/22/2020 at 04:07PM

22
#804 - drr3w / @droo5ki

11/06/2020 at 05:52PM

22
#805 - 103sgg / @103sgg

01/25/2021 at 07:02AM

22
#806 - wuzirui / @wuzirui5

03/10/2021 at 12:58PM

22
#807 - Frozen Voice / @FrozenVoice

11/27/2021 at 04:11PM

22
#808 - Yassine Deghaies / @MDeghaies

12/27/2021 at 12:34AM

23
#809 - VQvMoKsy / @QvKsy

07/28/2020 at 03:26PM

23
#810 - Henry Sloan / @HenryKSloan

08/05/2020 at 01:58AM