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

919 active golfers, 3731 entries

Leaderboard (lowest score wins):
10
#331 - Manish Bhasin / @xmbhasin

11/04/2020 at 01:02AM

10
#332 - Jacques Donnelly / @Donnll

11/05/2020 at 01:00PM

10
#333 - FrolPaderin / @FPaderin

11/05/2020 at 06:34PM

10
#334 - Nathan Iszlaub / @NIszlaub

11/06/2020 at 08:21AM

10
#335 - quemeraisc / @quemeraisc

11/06/2020 at 01:23PM

10
#336 - vimspam / @vimspam

11/09/2020 at 02:44AM

10
#337 - Bruce Woodward / @b00ffer

11/11/2020 at 08:52PM

10
#338 - Rafal C. / @RafalC37709324

11/14/2020 at 11:34AM

10
#339 - ErQ325 / @EQ325

11/19/2020 at 01:30PM

10
#340 - drumstix576 / @drumstix576

11/20/2020 at 05:59PM

10
#341 - why.degree / @WhyDegree

11/24/2020 at 11:19AM

10
#342 - Miguel Prada / @migueluli

11/25/2020 at 03:31PM

10
#343 - Robert Verst / @r_verst

11/26/2020 at 01:46PM

10
#344 - fedja golf / @fedjagolf

11/26/2020 at 05:28PM

10
#345 - Carter T / @CarterT97667764

11/29/2020 at 03:35AM

10
#346 - Alex Watson / @AlexDewiWatson

12/01/2020 at 02:20PM

10
#347 - Jonathan Ketner / @Chariotrunner

12/03/2020 at 02:12AM

10
#348 - akabaka / @akabakass

12/04/2020 at 03:50PM

10
#349 - davidpfeeley / @davidpfeeley

12/05/2020 at 08:30PM

10
#350 - Norman Liu / @normanwliu

12/06/2020 at 06:21AM

10
#351 - Jon Powers / @JonKPowers

12/12/2020 at 11:28PM

10
#352 - Inuka / @Inufps

12/17/2020 at 01:08PM

10
#353 - 正気・腕力・不労所得 / @tsukimizake774

12/18/2020 at 08:44AM

10
#354 - MEschenbacher / @eschenbacher_m

12/18/2020 at 06:26PM

10
#355 - Fabrizio Perria / @FPerria

12/19/2020 at 09:10AM

10
#356 - Bhagwan / @El_Bhagwan

12/19/2020 at 11:39PM

10
#357 - jksnapp / @jksnapp2

12/21/2020 at 03:06AM

10
#358 - dummy acc / @__dummy_acc

12/23/2020 at 05:32AM

10
#359 - Barabas Raffai / @BarabasRaffai

12/25/2020 at 08:06PM

10
#360 - Luke Abbott / @lukebyear

12/26/2020 at 03:15AM