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

938 active golfers, 3797 entries

Leaderboard (lowest score wins):
9
#91 - Ian Burgan / @IanBurgan

12/14/2020 at 10:48PM

9
#92 - 영훈 / @odjfnrtm

12/15/2020 at 12:24AM

9
#93 - Jon Liang / @jon__liang

12/16/2020 at 10:47PM

9
#94 - Joe Cabezas / @JoeCabezas

12/17/2020 at 01:05PM

9
#95 - Tuomas Järvensivu / @uhef

12/18/2020 at 06:09PM

9
#96 - floyd / @floyd10086

12/19/2020 at 01:37AM

9
#97 - John Doe / @JohnDoe75830353

12/19/2020 at 12:05PM

9
#98 - nlfrocks / @nlfrocks

12/20/2020 at 07:04AM

9
#99 - Brian :| / @Seeemplicity

12/20/2020 at 04:10PM

9
#100 - Yotsuba / @Yotsuba06764225

12/21/2020 at 12:24AM

9
#101 - Nicolas Pagny / @NicolasPagny

12/21/2020 at 02:31PM

9
#102 - nicosierra / @nicosierra84

12/21/2020 at 08:57PM

9
#103 - Niko Steinhoff / @niko_steinhoff

12/22/2020 at 06:18AM

9
#104 - niall / @subtractverb

12/22/2020 at 04:53PM

9
#105 - Zhenkai W. / @Zhenkai_W

12/23/2020 at 05:25AM

9
#106 - 김도현 / @pykJzzzsmAzloZl

12/23/2020 at 05:33AM

9
#107 - Ray Dennis / @raysden

12/23/2020 at 07:05PM

9
#108 - neonunux / @neonunux

12/24/2020 at 07:28PM

9
#109 - 임덕윤 / @SnLHUF5ZYJXqI1m

12/24/2020 at 07:51PM

9
#110 - Leo Chou / @yari7852

12/25/2020 at 11:38AM

9
#111 - nigaslivesmatter / @nigaslivesmatt1

12/27/2020 at 01:52PM

9
#112 - damien / @GreatTestyTest

12/27/2020 at 09:53PM

9
#113 - Hachi / @hachi16777216

12/28/2020 at 05:06AM

9
#114 - Chenrui / @Chenrui15958704

12/29/2020 at 03:09AM

9
#115 - Arne Brasseur / @plexus

12/29/2020 at 07:13AM

9
#116 - Austin / @austischwartz

01/01/2021 at 03:57AM

9
#117 - Matt Nichols / @mattnichols42

01/01/2021 at 07:30AM

9
#118 - Jon Miller / @jmillxyz

01/02/2021 at 03:13AM

9
#119 - Raul Brito / @raulbrito

01/02/2021 at 07:00AM

9
#120 - Andac Safa / @SanDForcE94

01/03/2021 at 06:00AM