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

1042 active golfers, 4236 entries

Leaderboard (lowest score wins):
27
#901 - TonyFettes / @TonyFettes

08/04/2020 at 05:16AM

27
#902 - ๐™๐™–๐™ฉ ๐™๐™š๐™ฉ๐™–๐™ง๐™™ ยฎ / @Rapists4Biden

08/05/2020 at 11:25PM

27
#903 - Mamadou Mountagha Ba / @shad0w_w1lkeR

08/06/2020 at 02:56AM

27
#904 - ใพใˆใกใ‚ƒใ‚“ใญใ‚‹ / @maechanneler

08/22/2020 at 03:18AM

27
#905 - Toni Lee / @lundbyit

08/24/2020 at 10:16AM

27
#906 - Vasily Fomin / @mrweizen

08/27/2020 at 06:12AM

27
#907 - ่”ฃๆ˜€ๅŠญ / @hjtiun852

09/01/2020 at 06:33AM

27
#908 - Dzmitry / @Dzmitry88489136

09/04/2020 at 07:56AM

27
#909 - Daniel Nadeau / @dnadeau13

09/06/2020 at 02:21AM

27
#910 - Rodrigo Boniatti / @boniattirodrigo

09/21/2020 at 11:56PM

27
#911 - Jeremiah Smith / @jeremiah4smith

10/06/2020 at 02:40AM

27
#912 - ๐—ฟ๐—ถ๐—ฐ / @albieroriccardo

10/22/2020 at 11:34PM

27
#913 - stefan dye / @stefandye

11/20/2020 at 10:31AM

27
#914 - Jake B / @jakebyman

12/23/2020 at 06:53AM

27
#915 - ใ„ / @_7iva

12/30/2020 at 07:22PM

27
#916 - fumiyakk / @fumiyakk

01/01/2021 at 04:31AM

27
#917 - Maria Soleim / @pepsimaxhei

01/09/2021 at 07:08PM

27
#918 - Arnaud Dezandee / @ArnaudDezandee

01/11/2021 at 04:39PM

27
#919 - yxke / @_yxke

01/12/2021 at 02:51PM

27
#920 - kontonavn / @kontonavn2

01/16/2021 at 09:30PM

27
#921 - Chun Chanjun / @CChanjun

03/23/2022 at 12:44PM

27
#922 - ็›งๅฐๅฐ / @VegetaLu

04/01/2022 at 10:01AM

27
#923 - ๅžๆ‰ฟๅพท / @bianchengde1

06/16/2022 at 03:45PM

28
#924 - Trevor Hulsman / @trevorhulsman

08/02/2020 at 07:30AM

28
#925 - Jenny V / @thenextjenna

08/21/2020 at 12:03AM

28
#926 - Nick Meyer / @nickmeyer

12/14/2020 at 09:54PM

28
#927 - nguyen hoang khoi / @HoangNhkhoi

01/16/2021 at 08:05PM

28
#928 - Scott Atkins / @scottrick49

05/25/2021 at 09:10PM

28
#929 - ใ‚†ใ‹ใŠ๐Ÿฆฉ๐Ÿฆฉ / @yucao24hours

12/10/2021 at 09:00AM

29
#930 - um F. / @umtoquesutil

08/06/2020 at 01:29AM