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):
18
#751 - dvorak4tzx / @dvorak4tzx4

12/28/2020 at 04:35PM

18
#752 - HybridZ04 / @Enriquefft_2001

01/24/2021 at 05:14AM

18
#753 - ziom ziomalski / @gemobjZiom

01/25/2021 at 04:57PM

18
#754 - Faizan Ansari / @faizan_157

01/31/2021 at 07:59AM

18
#755 - Pavlo Hadzheha / @PHadzheha

01/31/2021 at 04:21PM

18
#756 - Mobius / @ManiacalMobius

05/10/2021 at 11:36PM

18
#757 - Feras Aldahlawi - فراس الدهلوي / @_ferasd

12/13/2021 at 04:20AM

19
#758 - WillyPillow / @WillyPillow

08/28/2020 at 11:36AM

19
#759 - gandhiisback / @gandhiisback1

09/28/2020 at 06:13PM

19
#760 - Harry Uzzell / @HarryMUzzell

11/09/2020 at 03:56PM

19
#761 - Joe Bushi / @joebushi

11/24/2020 at 08:50AM

19
#762 - frog.py / @frogathan

12/02/2020 at 11:58PM

19
#763 - Frank Berthold / @fkberthold

01/18/2021 at 02:21AM

19
#764 - Un Extraño / @link145m

07/31/2021 at 10:28PM

19
#765 - Tom van Dijk / @d_tomvan

01/07/2022 at 06:15PM

20
#766 - Patrick Lavin / @LavinComputes

08/04/2020 at 12:25AM

20
#767 - Ruben Paz / @IstarEldritch

08/31/2020 at 08:44PM

20
#768 - Art / @Art80615229

09/02/2020 at 11:46PM

20
#769 - Veselin Ivanov / @azpcpblme

10/07/2020 at 09:16PM

20
#770 - Tobias Eliasson / @arnestig

11/11/2020 at 08:19AM

20
#771 - Matt Kula / @matt_kula

11/18/2020 at 10:04PM

20
#772 - jack lieblich / @jacklieb220

12/29/2020 at 04:01PM

20
#773 - TMS / @TMS_cz

01/02/2021 at 03:09PM

20
#774 - vimgolfer / @vimgolfer6

01/25/2021 at 07:11PM

20
#775 - 600MHz / @600MHz1

02/03/2021 at 02:16AM

20
#776 - 梅 / @umetosawara

04/17/2022 at 03:51AM

20
#777 - dehman56 / @dehman561

04/29/2022 at 12:25PM

20
#778 - seenz / @lefton_sean

05/11/2022 at 09:25PM

21
#779 - Luc Kien Hang / @luckienhang

09/03/2020 at 04:57AM

21
#780 - Jordan J. / @JordanJ84668492

09/10/2020 at 05:33PM