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

1106 active golfers, 4515 entries

Leaderboard (lowest score wins):
9
#151 - Justin / @JustinVecchioni

01/25/2021 at 09:28PM

9
#152 - Yondonjamts Ganzorig / @yondonjamts_g

01/26/2021 at 10:18AM

9
#153 - OtterPy / @OtterPy

01/26/2021 at 02:05PM

9
#154 - Jianfeng / @Jianfen22425058

01/27/2021 at 10:28AM

9
#155 - Oleg / @Oleg36601324

01/27/2021 at 01:56PM

9
#156 - Caleb Biddulph / @BiddulphCaleb

01/27/2021 at 08:20PM

9
#157 - Gaston / @Gaston53635525

01/27/2021 at 10:50PM

9
#158 - nedlog / @nedlog18

05/18/2021 at 08:58AM

9
#159 - damned-me / @damned_me_

05/24/2021 at 04:19PM

9
#160 - Michael / @Michael62785035

05/26/2021 at 02:05PM

9
#161 - Chae Eon Lim / @ChaeEonLim1

06/13/2021 at 05:16AM

9
#162 - m397 / @m39752809546

06/18/2021 at 07:52PM

9
#163 - Sarim Aleem / @AleemSarim

06/20/2021 at 10:34PM

9
#164 - Patrick Martin / @PatrickDMartin

06/29/2021 at 08:52PM

9
#165 - lydxn / @lydxn1

07/28/2021 at 11:04PM

9
#166 - Connor / @ronnocthered

08/21/2021 at 06:35AM

9
#167 - Roman Privalov / @RomanPrivalov

08/23/2021 at 01:10AM

9
#168 - yancy / @yancy_dong

09/17/2021 at 12:48AM

9
#169 - vim_maxter / @MaxterVim

09/20/2021 at 05:43AM

9
#170 - scpchicken / @scpchick

11/16/2021 at 03:06PM

9
#171 - Patrick Rainey / @PatrickJRainey

11/23/2021 at 05:09PM

9
#172 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 12:56AM

9
#173 - POSIX / @po6ix

01/07/2022 at 01:21AM

9
#174 - Brett Bender / @brttbndr

02/25/2022 at 04:47AM

9
#175 - Marcel Funderák / @fundosh

03/12/2022 at 07:27PM

9
#176 - Nils Melchert / @NilsMelchert

03/14/2022 at 03:11PM

9
#177 - naomi (forgetful functor) / @fixedpointfae

03/29/2022 at 12:53AM

9
#178 - ff df / @ffdf93207177

04/18/2022 at 03:22AM

9
#179 - dorianm / @dorianm

05/07/2022 at 11:30PM

9
#180 - russellzhaomao / @russellzhaomao

05/18/2022 at 10:14AM