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

935 active golfers, 3780 entries

Leaderboard (lowest score wins):
21
#721 - ETHEREUM_MINE_TAEMIN / @MineTaemin

10/08/2020 at 02:50PM

21
#722 - Izmoqwy / @Izmoqwy

10/21/2020 at 12:28PM

21
#723 - Joshua Parco / @JoshuaParco2

11/05/2020 at 11:42PM

21
#724 - Akkarin / @akkarinka

11/07/2020 at 07:35AM

21
#725 - windy / @LkzWindy

12/04/2020 at 08:31AM

21
#726 - Steve Lee / @HiWhoareyou12

12/14/2020 at 03:28AM

21
#727 - pong / @mr_pongpong

12/27/2020 at 10:30PM

21
#728 - SpadeAcademic / @AcademicSpade

01/12/2021 at 10:38AM

21
#729 - Devimal Planet / @DevimalPlanet

01/13/2021 at 08:12PM

21
#730 - grsh / @girish_i_am

05/27/2021 at 10:05AM

22
#731 - Takumi IINO / @troter

07/30/2020 at 09:58AM

22
#732 - Jajalí / @halivert

08/03/2020 at 04:08PM

22
#733 - BryanYan / @BryanGoesPlaces

09/29/2020 at 07:38AM

22
#734 - yaarrr / @v0lko

09/29/2020 at 10:39AM

22
#735 - Armel Chausse / @ArmelChausse

10/22/2020 at 04:07PM

22
#736 - drr3w / @droo5ki

11/06/2020 at 05:52PM

22
#737 - 103sgg / @103sgg

01/25/2021 at 07:02AM

22
#738 - wuzirui / @wuzirui5

03/10/2021 at 12:58PM

23
#739 - VQvMoKsy / @QvKsy

07/28/2020 at 03:26PM

23
#740 - Henry Sloan / @HenryKSloan

08/05/2020 at 01:58AM

23
#741 - 2018秋 / @yu9JKDTap5nbaRe

08/17/2020 at 05:58AM

23
#742 - gchain / @gchain7

08/21/2020 at 02:18PM

23
#743 - Raiden Worley / @RaidenWorley

08/21/2020 at 07:33PM

23
#744 - Caio Salgado / @Caio_CSalgado

08/24/2020 at 09:43PM

23
#745 - Mathias / @Mathias70341252

08/28/2020 at 07:29AM

23
#746 - Tom Mao / @fanyange

08/30/2020 at 12:57AM

23
#747 - Peter Kim / @droidarmy95

09/10/2020 at 06:51AM

23
#748 - merkin_man / @merkin_man

09/29/2020 at 03:46PM

23
#749 - HudsonJoe / @HudsonJoe1995

09/29/2020 at 09:22PM

23
#750 - Ayush Singh / @Whoosh13

10/01/2020 at 11:58PM