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

1106 active golfers, 4515 entries

Leaderboard (lowest score wins):
9
#181 - Levi Wheeler / @LeviWhe68726437

05/24/2022 at 04:48PM

9
#182 - Alex / @AlexanderHeatl2

05/30/2022 at 08:47PM

9
#183 - Дмитрий Инютин / @DmitrijInutin

06/16/2022 at 09:30AM

9
#184 - Janzen / @__Coos

09/13/2022 at 11:37AM

9
#185 - 刘宏亮 / @AkeyCoy

09/21/2022 at 02:24PM

9
#186 - Álan Crístoffer / @acristoffers

11/27/2022 at 07:30PM

9
#187 - ひま / @sux2mfgj_gz

12/04/2022 at 02:52AM

9
#188 - dadams2 / @dadams217

12/30/2022 at 03:15AM

9
#189 - John Contad ᜉᜎ᜔o / @JohnContad

01/05/2023 at 05:43AM

9
#190 - Jake / @thejakenixon

03/17/2023 at 07:43PM

9
#191 - ­김수현 / 학생 / 건설환경공학부 / @gimsuhyeonhags1

03/21/2023 at 02:48PM

9
#192 - Иван / @wansmer

04/23/2023 at 01:32PM

9
#193 - someperson150 / @someperson150

05/20/2023 at 02:09PM

9
#194 - 咸糖🎯 / @GIA917229015

07/09/2023 at 03:48PM

9
#195 - moh ayaya / @AyayaMoh

08/27/2023 at 04:13PM

9
#196 - Hans Wurscht / @HansW313

09/22/2023 at 10:02AM

9
#197 - Topvimgolf Score / @topvimgolfscore

10/02/2023 at 07:19AM

9
#198 - Sébastien Matharel / @s_cognac

10/23/2023 at 11:13PM

9
#199 - Remus Dalrymple / @bornintheflames

12/12/2023 at 07:20AM

9
#200 - sosa-daniel / @sosa-daniel

12/30/2023 at 07:19AM

9
#201 - bonettimrc / @bonettimrc

04/24/2024 at 10:04PM

9
#202 - luke37842 / @luke37842

05/14/2024 at 05:38PM

9
#203 - Paul McDowell / @etothepi16

05/22/2024 at 08:15PM

9
#204 - Aly Thobani / @alythobani

05/28/2024 at 10:44PM

9
#205 - molnija3d / @molnija3d

06/29/2024 at 04:02PM

9
#206 - Hector Bjernersjö / @HectorBjernersjo

07/10/2024 at 12:19PM

9
#207 - Peppa Pig / @PeppaPigSg

07/15/2024 at 09:28AM

9
#208 - KoroneListener / @KoroneListener

09/05/2024 at 05:52PM

9
#209 - 🥚 / @schmarles_

10/19/2024 at 04:44PM

9
#210 - OisinWard / @OisinWard

11/20/2024 at 05:22PM