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

1045 active golfers, 4257 entries

Leaderboard (lowest score wins):
23
#841 - Caio Salgado / @Caio_CSalgado

08/24/2020 at 09:43PM

23
#842 - Mathias / @Mathias70341252

08/28/2020 at 07:29AM

23
#843 - Tom Mao / @fanyange

08/30/2020 at 12:57AM

23
#844 - Peter Kim / @droidarmy95

09/10/2020 at 06:51AM

23
#845 - merkin_man / @merkin_man

09/29/2020 at 03:46PM

23
#846 - HudsonJoe / @HudsonJoe1995

09/29/2020 at 09:22PM

23
#847 - Ayush Singh / @Whoosh13

10/01/2020 at 11:58PM

23
#848 - Prabhat Ranjan / @prabhatr27

11/05/2020 at 12:10AM

23
#849 - Joey Pilla / @joey_pilla

11/05/2020 at 12:31AM

23
#850 - kijete3127 / @kijete3127

12/13/2020 at 01:09PM

23
#851 - mike-vimgolf / @MVimgolf

12/28/2020 at 10:54PM

23
#852 - Nitesh Rijhwani / @NitzRijhwani

01/05/2021 at 07:14AM

23
#853 - fff / @fff51460170

02/20/2021 at 05:56AM

24
#854 - Iyed Ghedamsi / @iyed_g

09/16/2020 at 08:46PM

24
#855 - The Valencian Dev / @thevalenciandev

10/10/2020 at 01:14PM

24
#856 - Gleb Zaharov / @maerfix

10/10/2020 at 02:07PM

24
#857 - Júda Ronén ☮️ (moved to Mastodon 🦣; see bio) / @JudaRonen

10/10/2020 at 07:53PM

24
#858 - Victor-IsmaelReeves / @VIsmaelreeves

10/23/2020 at 12:00PM

24
#859 - Alon Samuel / @AlonSamuel1

10/30/2020 at 07:15PM

24
#860 - justinhj / @justinhj

12/15/2020 at 09:26PM

24
#861 - SudoSmile / @SudoSmile

07/09/2021 at 11:25PM

24
#862 - anonymouse / @anonymo65837183

04/26/2022 at 12:58AM

25
#863 - Jose / @Esnaque

07/28/2020 at 05:44PM

25
#864 - Vincent Feng / @VincentFenging

08/03/2020 at 05:06PM

25
#865 - Christian Mösl / @ChristianMoesl

08/19/2020 at 08:37PM

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

08/23/2020 at 11:37PM

25
#867 - Christophe Robillard / @krichtof

08/24/2020 at 08:06PM

25
#868 - nisja / @nisja5

08/25/2020 at 01:51AM

25
#869 - Sui Li / @lisuiasdf

08/28/2020 at 05:12AM

25
#870 - Jesús Arenas / @reckosk8

09/01/2020 at 04:39AM