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

938 active golfers, 3797 entries

Leaderboard (lowest score wins):
10
#331 - Free Man / @FreeMan16396552

10/21/2020 at 03:12AM

10
#332 - chocolate / @chocola81394123

10/23/2020 at 04:06AM

10
#333 - Jason Wang / @Jaded_Jason

10/23/2020 at 04:37AM

10
#334 - Josh Swift / @Swiftyfish14

10/27/2020 at 09:31PM

10
#335 - LCY / @Chooneh

10/29/2020 at 06:11AM

10
#336 - Nicolas CLEMENT / @Nicolas18649863

11/03/2020 at 01:06PM

10
#337 - Manish Bhasin / @xmbhasin

11/04/2020 at 01:02AM

10
#338 - Jacques Donnelly / @Donnll

11/05/2020 at 01:00PM

10
#339 - FrolPaderin / @FPaderin

11/05/2020 at 06:34PM

10
#340 - Nathan Iszlaub / @NIszlaub

11/06/2020 at 08:21AM

10
#341 - quemeraisc / @quemeraisc

11/06/2020 at 01:23PM

10
#342 - vimspam / @vimspam

11/09/2020 at 02:44AM

10
#343 - Bruce Woodward / @b00ffer

11/11/2020 at 08:52PM

10
#344 - Rafal C. / @RafalC37709324

11/14/2020 at 11:34AM

10
#345 - ErQ325 / @EQ325

11/19/2020 at 01:30PM

10
#346 - drumstix576 / @drumstix576

11/20/2020 at 05:59PM

10
#347 - why.degree / @WhyDegree

11/24/2020 at 11:19AM

10
#348 - Miguel Prada / @migueluli

11/25/2020 at 03:31PM

10
#349 - Robert Verst / @r_verst

11/26/2020 at 01:46PM

10
#350 - fedja golf / @fedjagolf

11/26/2020 at 05:28PM

10
#351 - Carter T / @CarterT97667764

11/29/2020 at 03:35AM

10
#352 - Alex Watson / @AlexDewiWatson

12/01/2020 at 02:20PM

10
#353 - Jonathan Ketner / @Chariotrunner

12/03/2020 at 02:12AM

10
#354 - akabaka / @akabakass

12/04/2020 at 03:50PM

10
#355 - davidpfeeley / @davidpfeeley

12/05/2020 at 08:30PM

10
#356 - Norman Liu / @normanwliu

12/06/2020 at 06:21AM

10
#357 - Jon Powers / @JonKPowers

12/12/2020 at 11:28PM

10
#358 - Inuka / @Inufps

12/17/2020 at 01:08PM

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

12/18/2020 at 08:44AM

10
#360 - MEschenbacher / @eschenbacher_m

12/18/2020 at 06:26PM