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):
10
#361 - Fabrizio Perria / @FPerria

12/19/2020 at 09:10AM

10
#362 - iBhagwan / @iiBhagwan

12/19/2020 at 11:39PM

10
#363 - jksnapp / @jksnapp2

12/21/2020 at 03:06AM

10
#364 - dummy acc / @__dummy_acc

12/23/2020 at 05:32AM

10
#365 - Barabas Raffai / @BarabasRaffai

12/25/2020 at 08:06PM

10
#366 - Luke Abbott / @lukebyear

12/26/2020 at 03:15AM

10
#367 - Lee Saville / @LeeSaville

12/27/2020 at 02:32PM

10
#368 - Sebastian Stephan / @DasFerd

01/02/2021 at 06:43PM

10
#369 - Александр Шарипов / @tehadawest

01/03/2021 at 01:48PM

10
#370 - Mathew Varughese / @varhawk5

01/04/2021 at 02:27AM

10
#371 - Duncan / @Duncan31503119

01/06/2021 at 05:08AM

10
#372 - S / @steed2005

01/07/2021 at 09:16PM

10
#373 - Jakub / @vr0m

01/08/2021 at 08:48PM

10
#374 - fray bauhaus / @BauhausFray

01/11/2021 at 05:29PM

10
#375 - Jh / @Simguynz

01/12/2021 at 01:39AM

10
#376 - vimRunnerUp3000 / @VUp3000

01/12/2021 at 03:52PM

10
#377 - knobbelkesvlaai / @knobbelkesvlaai

01/13/2021 at 10:12AM

10
#378 - 김범준 / @kmbmjn

01/14/2021 at 05:38AM

10
#379 - Dave Millican / @dave_millican

01/18/2021 at 07:05AM

10
#380 - siruichang / @Blessing13Si

01/19/2021 at 02:19PM

10
#381 - Jim Moy / @jbmfc

01/19/2021 at 03:46PM

10
#382 - vimgolf / @vimgolf7

01/25/2021 at 01:25PM

10
#383 - nicusor / @nicu31

01/26/2021 at 04:07PM

10
#384 - Askhento / @Askhento1

01/27/2021 at 08:30PM

10
#385 - Fabrice BONNET / @FabriceBONNET6

04/29/2021 at 03:02PM

10
#386 - Yttriferous / @YttriferousDev

05/25/2021 at 08:25AM

10
#387 - Georg Bökman / @BokmanGeorg

07/03/2021 at 09:09PM

10
#388 - nullcasa / @nullcasa

07/14/2021 at 11:13PM

10
#389 - I_Don't_Want_This_Account / @IDontWa59298038

07/16/2021 at 02:01AM

10
#390 - Michel Viktor / @tomkpz

07/25/2021 at 03:43AM