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):
19
#691 - WillyPillow / @WillyPillow

08/28/2020 at 11:36AM

19
#692 - gandhiisback / @gandhiisback1

09/28/2020 at 06:13PM

19
#693 - Harry Uzzell / @HarryMUzzell

11/09/2020 at 03:56PM

19
#694 - Joe Bushi / @joebushi

11/24/2020 at 08:50AM

19
#695 - frog.py / @frogathan

12/02/2020 at 11:58PM

19
#696 - Frank Berthold / @fkberthold

01/18/2021 at 02:21AM

19
#697 - Un Extra├▒o / @link145m

07/31/2021 at 10:28PM

20
#698 - Patrick Lavin / @LavinComputes

08/04/2020 at 12:25AM

20
#699 - Ruben Paz / @IstarEldritch

08/31/2020 at 08:44PM

20
#700 - Art / @Art80615229

09/02/2020 at 11:46PM

20
#701 - Veselin Ivanov / @azpcpblme

10/07/2020 at 09:16PM

20
#702 - Tobias Eliasson / @arnestig

11/11/2020 at 08:19AM

20
#703 - Matt Kula / @matt_kula

11/18/2020 at 10:04PM

20
#704 - jack lieblich / @jacklieb220

12/29/2020 at 04:01PM

20
#705 - TMS / @TMS_cz

01/02/2021 at 03:09PM

20
#706 - vimgolfer / @vimgolfer6

01/25/2021 at 07:11PM

20
#707 - 600MHz / @600MHz1

02/03/2021 at 02:16AM

21
#708 - Luc Kien Hang / @luckienhang

09/03/2020 at 04:57AM

21
#709 - Jordan J. / @JordanJ84668492

09/10/2020 at 05:33PM

21
#710 - Julian Geiger / @JulianGeiger14

09/11/2020 at 09:38AM

21
#711 - UberPilot / @uberpilot99

09/15/2020 at 08:44PM

21
#712 - mossycat / @cat_mossy

09/16/2020 at 05:31PM

21
#713 - Roberto Dip / @roperzh

09/19/2020 at 02:39AM

21
#714 - Julien Philippon / @Apoutchika

09/19/2020 at 04:34PM

21
#715 - Sergey Yakovlev / @selfuryon

09/20/2020 at 07:41PM

21
#716 - just here to scroll. / @idontknow0001

10/03/2020 at 11:55AM

21
#717 - ETHEREUM_MINE_TAEMIN / @MineTaemin

10/08/2020 at 02:50PM

21
#718 - Izmoqwy / @Izmoqwy

10/21/2020 at 12:28PM

21
#719 - Joshua Parco / @JoshuaParco2

11/05/2020 at 11:42PM

21
#720 - Akkarin / @akkarinka

11/07/2020 at 07:35AM