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

931 active golfers, 3762 entries

Leaderboard (lowest score wins):
15
#631 - Saurav / @ray__saurav

04/07/2021 at 10:02PM

15
#632 - Marcus / @marcusostling94

06/10/2021 at 07:11PM

16
#633 - Seve / @Seve_py

07/31/2020 at 09:27PM

16
#634 - thefülish / @thefulish

08/17/2020 at 07:58PM

16
#635 - Hussein El-Sayed / @HusseinElSayed4

08/18/2020 at 10:02AM

16
#636 - Paschalis Economou / @PaschalisEcono1

08/20/2020 at 05:37AM

16
#637 - Doemae / @Doemae02

08/24/2020 at 02:09PM

16
#638 - Vex / @Vexy_0w0

08/29/2020 at 01:08AM

16
#639 - Sebastian W. / @Sebasti91439242

09/01/2020 at 04:50PM

16
#640 - Kim Hwa Joong / @hanmwoi

09/23/2020 at 08:53PM

16
#641 - Abhishek Sriraman / @asriraman

09/28/2020 at 04:35AM

16
#642 - Christian Klos / @daooka

10/11/2020 at 01:35PM

16
#643 - vdhert / @vdhert1

10/15/2020 at 01:00PM

16
#644 - Pietari Heino / @PietariHeino

10/15/2020 at 02:35PM

16
#645 - Александр Сорокин / @zhigan175

10/30/2020 at 12:53PM

16
#646 - moh ayaya / @AyayaMoh

11/01/2020 at 09:31PM

16
#647 - Laura Skillington / @lauraskills1

11/24/2020 at 09:38PM

16
#648 - Camden Cheek / @ccheek21

12/20/2020 at 04:10AM

16
#649 - Vikram Natarajan / @VikNatr

01/17/2021 at 07:47AM

16
#650 - Codle / @Coolchao

01/19/2021 at 08:03AM

16
#651 - ttauveron / @ttauveron1

01/21/2021 at 12:58AM

16
#652 - Mateusz Kaniecki / @MateuszKanieck1

02/01/2021 at 07:46PM

16
#653 - Ugg / @Ugg_dvmx

02/25/2021 at 08:06AM

16
#654 - grosa / @_grosa_

06/09/2021 at 04:29AM

17
#655 - asdf / @asdf06706771

08/02/2020 at 06:11AM

17
#656 - random_bird9090 / @RBird9090

08/09/2020 at 07:39PM

17
#657 - mario / @mario84586731

08/24/2020 at 02:11PM

17
#658 - Dr Rev J. “I am not a bot!” Kirchartz, KSC, KHS / @JKirchartz

09/09/2020 at 01:09PM

17
#659 - 이종혁 / @BluePaisa

09/17/2020 at 10:01AM

17
#660 - Luke Pafford / @lukep135

09/30/2020 at 02:54PM