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

1109 active golfers, 4547 entries

Leaderboard (lowest score wins):
17
#811 - 0xCEFAEDFE / @umanwizard

10/29/2020 at 06:20PM

17
#812 - Hieu Nguyen / @hieungx

10/30/2020 at 04:28AM

17
#813 - salchint / @salchint

12/04/2020 at 06:19PM

17
#814 - Etienne Tremel / @etiennetremel

12/16/2020 at 07:45PM

17
#815 - kris welsh / @kriswelsh

12/28/2020 at 05:17PM

17
#816 - vesa / @XingfDu

01/08/2021 at 08:37AM

17
#817 - 王軒 / @XMRHR

01/16/2021 at 01:34AM

17
#818 - pete / @pedrbrun

01/22/2021 at 02:21AM

17
#819 - Nathan Sharp / @NazzaSharp

01/24/2021 at 05:14PM

17
#820 - guidoguidoguido / @un_nome_stupido

04/28/2021 at 10:45AM

17
#821 - Lam / @Lam12695743

06/13/2021 at 02:30AM

17
#822 - Zain.Edogawa / @EdogawaZain

07/15/2022 at 05:56PM

17
#823 - Alexander Groth / @alexander-walkingtreegames

05/23/2024 at 11:43AM

18
#824 - Maibritt Illner / @Maibritt_Illner

08/04/2020 at 05:54PM

18
#825 - zaru / @zaru

08/18/2020 at 04:46AM

18
#826 - Nathan Hollows / @nathanhollows

08/20/2020 at 10:45PM

18
#827 - victor devyatov / @DevyatovVictor

09/01/2020 at 08:54PM

18
#828 - Oskar Tołkacz / @0skarrrrrrr

11/05/2020 at 10:20AM

18
#829 - hejhopp87 / @hejhopp87

12/06/2020 at 06:15AM

18
#830 - david / @david52856086

12/17/2020 at 03:19PM

18
#831 - dvorak4tzx / @dvorak4tzx4

12/28/2020 at 04:35PM

18
#832 - HybridZ04 / @Enriquefft_2001

01/24/2021 at 05:14AM

18
#833 - ziom ziomalski / @gemobjZiom

01/25/2021 at 04:57PM

18
#834 - Faizan Ansari / @faizan_157

01/31/2021 at 07:59AM

18
#835 - Pavlo Hadzheha / @PHadzheha

01/31/2021 at 04:21PM

18
#836 - Mobius / @ManiacalMobius

05/10/2021 at 11:36PM

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

12/13/2021 at 04:20AM

19
#838 - WillyPillow / @WillyPillow

08/28/2020 at 11:36AM

19
#839 - gandhiisback / @gandhiisback1

09/28/2020 at 06:13PM

19
#840 - Harry Uzzell / @HarryMUzzell

11/09/2020 at 03:56PM