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

1017 active golfers, 4115 entries

Leaderboard (lowest score wins):
23
#811 - 2018秋 / @yu9JKDTap5nbaRe

08/17/2020 at 05:58AM

23
#812 - gchain / @gchain7

08/21/2020 at 02:18PM

23
#813 - Raiden Worley / @RaidenWorley

08/21/2020 at 07:33PM

23
#814 - Caio Salgado / @Caio_CSalgado

08/24/2020 at 09:43PM

23
#815 - Mathias / @Mathias70341252

08/28/2020 at 07:29AM

23
#816 - Tom Mao / @fanyange

08/30/2020 at 12:57AM

23
#817 - Peter Kim / @droidarmy95

09/10/2020 at 06:51AM

23
#818 - merkin_man / @merkin_man

09/29/2020 at 03:46PM

23
#819 - HudsonJoe / @HudsonJoe1995

09/29/2020 at 09:22PM

23
#820 - Ayush Singh / @Whoosh13

10/01/2020 at 11:58PM

23
#821 - Prabhat Ranjan / @prabhatr27

11/05/2020 at 12:10AM

23
#822 - Joey Pilla / @joey_pilla

11/05/2020 at 12:31AM

23
#823 - kijete3127 / @kijete3127

12/13/2020 at 01:09PM

23
#824 - mike-vimgolf / @MVimgolf

12/28/2020 at 10:54PM

23
#825 - Nitesh Rijhwani / @NitzRijhwani

01/05/2021 at 07:14AM

23
#826 - fff / @fff51460170

02/20/2021 at 05:56AM

24
#827 - Iyed Ghedamsi / @iyed_g

09/16/2020 at 08:46PM

24
#828 - The Valencian Dev / @thevalenciandev

10/10/2020 at 01:14PM

24
#829 - Gleb Zaharov / @maerfix

10/10/2020 at 02:07PM

24
#830 - Júda Ronén / @JudaRonen

10/10/2020 at 07:53PM

24
#831 - Victor-IsmaelReeves / @VIsmaelreeves

10/23/2020 at 12:00PM

24
#832 - Alon Samuel / @AlonSamuel1

10/30/2020 at 07:15PM

24
#833 - justinhj / @justinhj

12/15/2020 at 09:26PM

24
#834 - SudoSmile / @SudoSmile

07/09/2021 at 11:25PM

24
#835 - anonymouse / @anonymo65837183

04/26/2022 at 12:58AM

25
#836 - Jose / @Esnaque

07/28/2020 at 05:44PM

25
#837 - Vincent Feng / @VincentFenging

08/03/2020 at 05:06PM

25
#838 - Christian Mösl / @ChristianMoesl

08/19/2020 at 08:37PM

25
#839 - 最近太り気味で。 / @doka2000gt

08/23/2020 at 11:37PM

25
#840 - Christophe Robillard / @krichtof

08/24/2020 at 08:06PM