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

935 active golfers, 3780 entries

Leaderboard (lowest score wins):
30
#841 - 彭驰Yo-Ki-O / @pengchi1244

07/30/2020 at 01:38AM

30
#842 - Shrutesh Patil / @patil_shrutesh

08/01/2020 at 07:27PM

30
#843 - binayak tiwari / @bintiw

08/03/2020 at 12:29AM

30
#844 - Fullstacks / @fullstacks_app

09/03/2020 at 10:11AM

30
#845 - MV / @MV13499885

09/19/2020 at 07:37PM

30
#846 - Hoang Ho / @HoangHo32183538

09/25/2020 at 09:47PM

30
#847 - 鐵屋 / @tiewuz

01/01/2021 at 06:52PM

30
#848 - Matan Kushner / @matchai

01/20/2021 at 05:02PM

30
#849 - Jonas Pauthier / @Jonas_Pauthier

02/25/2021 at 09:44AM

31
#850 - Thiago Becker 😷 / @beckert

07/31/2020 at 12:22PM

31
#851 - Aiyan Jiang / @AiyanJiang

09/03/2020 at 01:47PM

31
#852 - Anton Akhiar / @antonakhiar

10/04/2020 at 09:51AM

31
#853 - Quim Ortiz de Haro / @QuimOrtizdeHaro

11/01/2020 at 05:09PM

31
#854 - Wojciech Matuszewski / @wm_matuszewski

01/03/2021 at 05:07AM

31
#855 - Flor Zanetta / @flor_z

03/08/2021 at 07:41PM

32
#856 - manfred knapp / @fred_pooshka

08/18/2020 at 08:39PM

32
#857 - Lucas_Elsen / @DuVrangrGata18

09/19/2020 at 11:30AM

32
#858 - Donald J. Quixote (LOSER) / @Unabogie

01/01/2021 at 06:39PM

32
#859 - 김광훈 / @thinkliquid1

01/14/2021 at 02:23AM

33
#860 - Егор / @rxLmBbiP48E21tx

08/19/2020 at 10:20AM

33
#861 - Tokunaga Isa / @Lajansaa

09/12/2020 at 04:43PM

33
#862 - Ryan / @Ryan63088464

09/13/2020 at 07:08AM

33
#863 - Victor Liu / @alsoMee2

09/19/2020 at 02:29AM

33
#864 - fruitydeer / @fruitydeer

12/23/2020 at 08:58AM

33
#865 - Kapildev Neupane / @KapildevNeupane

12/29/2020 at 03:04AM

33
#866 - variable-pitch-mode / @ModePitch

01/04/2021 at 03:10AM

33
#867 - panakin skywalker / @_j3ffrey

01/25/2021 at 06:57AM

34
#868 - Chris Larkin / @Cupcakus

08/11/2020 at 11:15AM

34
#869 - dzungtran / @dzungtran89

09/18/2020 at 04:17PM

34
#870 - Victor Tortolero / @MightyPenguinV

01/26/2021 at 07:43PM