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):
23
#751 - Nitesh Rijhwani / @NitzRijhwani

01/05/2021 at 07:14AM

23
#752 - fff / @fff51460170

02/20/2021 at 05:56AM

24
#753 - Iyed Ghedamsi / @iyed_g

09/16/2020 at 08:46PM

24
#754 - The Valencian Dev / @thevalenciandev

10/10/2020 at 01:14PM

24
#755 - Gleb Zaharov / @maerfix

10/10/2020 at 02:07PM

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

10/10/2020 at 07:53PM

24
#757 - Victor-IsmaelReeves / @VIsmaelreeves

10/23/2020 at 12:00PM

24
#758 - Alon Samuel / @AlonSamuel1

10/30/2020 at 07:15PM

24
#759 - justinhj / @justinhj

12/15/2020 at 09:26PM

24
#760 - SudoSmile / @SudoSmile

07/09/2021 at 11:25PM

25
#761 - Jose / @Esnaque

07/28/2020 at 05:44PM

25
#762 - Vincent Feng / @VincentFenging

08/03/2020 at 05:06PM

25
#763 - Christian Mösl / @ChristianMoesl

08/19/2020 at 08:37PM

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

08/23/2020 at 11:37PM

25
#765 - Christophe Robillard / @krichtof

08/24/2020 at 08:06PM

25
#766 - nisja / @nisja5

08/25/2020 at 01:51AM

25
#767 - Sui Li / @lisuiasdf

08/28/2020 at 05:12AM

25
#768 - Jesús Arenas / @reckosk8

09/01/2020 at 04:39AM

25
#769 - dayshade / @dayshade_7

10/05/2020 at 01:22PM

25
#770 - Lorenzo Swank / @lswank

10/18/2020 at 09:50AM

25
#771 - Thibaud Ducasse / @tducasse

12/22/2020 at 06:48AM

25
#772 - Jung Yeon Park / @park_jungy

12/27/2020 at 07:22PM

25
#773 - andoku / @andoku_

01/26/2021 at 10:35PM

25
#774 - Siddharth Garg / @SGarg510

02/03/2021 at 03:30AM

25
#775 - Bob Jamaro / @JamaroBob

02/04/2021 at 03:27PM

25
#776 - Anton / @Zackushka

03/28/2021 at 11:17PM

25
#777 - Harshit Hajela / @HarshitHajela

04/09/2021 at 12:38AM

25
#778 - BenMedcalf / @BMedcalf_online

04/17/2021 at 02:06AM

25
#779 - max / @max_vimaster

06/25/2021 at 11:12AM

26
#780 - Gonzalo del Castillo / @gdelca5

07/27/2020 at 12:40AM