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

919 active golfers, 3731 entries

Leaderboard (lowest score wins):
10
#361 - Lee Saville / @LeeSaville

12/27/2020 at 02:32PM

10
#362 - Sebastian Stephan / @DasFerd

01/02/2021 at 06:43PM

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

01/03/2021 at 01:48PM

10
#364 - Mathew Varughese / @varhawk5

01/04/2021 at 02:27AM

10
#365 - Duncan / @Duncan31503119

01/06/2021 at 05:08AM

10
#366 - S / @steed2005

01/07/2021 at 09:16PM

10
#367 - Jakub / @vr0m

01/08/2021 at 08:48PM

10
#368 - fray bauhaus / @BauhausFray

01/11/2021 at 05:29PM

10
#369 - Jh / @Simguynz

01/12/2021 at 01:39AM

10
#370 - vimRunnerUp3000 / @VUp3000

01/12/2021 at 03:52PM

10
#371 - knobbelkesvlaai / @knobbelkesvlaai

01/13/2021 at 10:12AM

10
#372 - 김범준 / @kmbmjn

01/14/2021 at 05:38AM

10
#373 - Dave Millican / @dave_millican

01/18/2021 at 07:05AM

10
#374 - siruichang / @Blessing13Si

01/19/2021 at 02:19PM

10
#375 - Jim Moy / @jbmfc

01/19/2021 at 03:46PM

10
#376 - vimgolf / @vimgolf7

01/25/2021 at 01:25PM

10
#377 - nicusor / @nicu31

01/26/2021 at 04:07PM

10
#378 - Askhento / @Askhento1

01/27/2021 at 08:30PM

10
#379 - Fabrice BONNET / @FabriceBONNET6

04/29/2021 at 03:02PM

10
#380 - Yttriferous / @YttriferousDev

05/25/2021 at 08:25AM

11
#381 - Yannick / @Yannick88147038

07/27/2020 at 11:41AM

11
#382 - knub / @LauraToric

08/01/2020 at 09:24AM

11
#383 - khedd / @sinan_khedd

08/02/2020 at 06:45PM

11
#384 - Fergus Longley / @FergusLongley

08/03/2020 at 10:43AM

11
#385 - Ben MERTZ / @BenMERTZ3

08/07/2020 at 05:56PM

11
#386 - David Martínez / @g0ddrinksjava

08/07/2020 at 06:10PM

11
#387 - Kazuki / @algo__n

08/08/2020 at 07:00AM

11
#388 - Martin Bielik / @mabielik

08/09/2020 at 08:38PM

11
#389 - notadevCollins / @NotadevC

08/10/2020 at 06:00PM

11
#390 - Alexander L. / @Lexol4s

08/11/2020 at 05:21PM