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

1106 active golfers, 4515 entries

Leaderboard (lowest score wins):
9
#61 - Andreas Siegrist / @andreaszwei

11/15/2020 at 01:32AM

9
#62 - Lashoun / @lashoun42

11/17/2020 at 02:54PM

9
#63 - Andreas Näsman / @andreas_nasman

11/22/2020 at 03:25PM

9
#64 - Serhiy Prikhodko / @mastersnetru

11/23/2020 at 03:23PM

9
#65 - Hugh / @haquaman

11/24/2020 at 03:16AM

9
#66 - Noise Official / @zmunk19

11/24/2020 at 11:46AM

9
#67 - Andrew Lewis / @alew_is

11/25/2020 at 09:17PM

9
#68 - Adam Stephen / @2_71828

11/29/2020 at 07:48PM

9
#69 - nd183 / @nd1832

12/03/2020 at 10:20AM

9
#70 - roudens / @roudens2

12/04/2020 at 12:36AM

9
#71 - Dax / @zacoxi

12/04/2020 at 01:21AM

9
#72 - f a / @5eraf

12/04/2020 at 04:24AM

9
#73 - SEbbaDK / @SEbbaDK

12/04/2020 at 03:14PM

9
#74 - Sam Christensen / @samuelchriste

12/04/2020 at 09:48PM

9
#75 - Neverlandrunner / @neverlandrunner

12/05/2020 at 12:06PM

9
#76 - angel / @anmaso

12/05/2020 at 10:44PM

9
#77 - Matt DB / @MattDB12

12/06/2020 at 05:44PM

9
#78 - SilviaRodriguez / @Rodrigu3zSilvia

12/06/2020 at 07:06PM

9
#79 - James Lowenthal / @JamesAnthonyLow

12/09/2020 at 01:26AM

9
#80 - Ryan Way / @RyanWay16

12/09/2020 at 01:29AM

9
#81 - — / @Cenarius

12/09/2020 at 03:45AM

9
#82 - pherapont / @pherapont1

12/10/2020 at 04:45AM

9
#83 - kse / @kse92733183

12/11/2020 at 01:31PM

9
#84 - Finniboy / @OrangeFrano

12/11/2020 at 04:42PM

9
#85 - ohanan / @ohanan16

12/11/2020 at 06:24PM

9
#86 - Ruub21 / @Ruub21

12/11/2020 at 08:31PM

9
#87 - Eric Banisadr / @ebanisadr

12/13/2020 at 10:52AM

9
#88 - abel.shen / @Abel_Shen

12/13/2020 at 05:10PM

9
#89 - Kha Nguyen / @__ngtrongkha

12/14/2020 at 02:54AM

9
#90 - iwata / @ishowta

12/14/2020 at 05:34AM