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
#121 - slen / @slen97472206

01/03/2021 at 11:00PM

9
#122 - Ding Liu / @Nimrod0901

01/04/2021 at 01:55AM

9
#123 - 유승우 / @A0ynCXsO226uayI

01/04/2021 at 02:56AM

9
#124 - A A A / @37fatos

01/06/2021 at 07:58PM

9
#125 - Cameron Jones / @Deimyts

01/07/2021 at 08:48PM

9
#126 - antoine mas / @aneomas

01/08/2021 at 07:40PM

9
#127 - logtxt / @logtxt1

01/10/2021 at 04:32AM

9
#128 - Austin Scott / @theMetgame

01/11/2021 at 02:27AM

9
#129 - this is for vim golf / @Dis4VimGolf

01/12/2021 at 10:59PM

9
#130 - Finlay McAfee / @finsqm

01/13/2021 at 12:12PM

9
#131 - Gokul Raj / @Gokul_Raj__

01/14/2021 at 05:37AM

9
#132 - gimmie fromage / @FromageGimmie

01/14/2021 at 02:05PM

9
#133 - Yuhan Chen / @YuhanCh06219951

01/14/2021 at 09:50PM

9
#134 - Marion Oldman / @ThatBigCock

01/15/2021 at 01:15AM

9
#135 - notctsk / @notctsk

01/16/2021 at 01:16PM

9
#136 - Sergei Blinov / @awnion

01/17/2021 at 12:03AM

9
#137 - speisz / @speiszc

01/17/2021 at 10:22PM

9
#138 - Michael / @linux478

01/18/2021 at 03:16AM

9
#139 - BumfuzzleGames / @BumfuzzleGames

01/18/2021 at 07:18AM

9
#140 - Horst / @Horst91706815

01/18/2021 at 04:15PM

9
#141 - Ken Baldwin / @kenbald1

01/19/2021 at 03:26AM

9
#142 - Xiao Wangwang / @WangwangXiao

01/19/2021 at 05:24PM

9
#143 - Ben Simmons / @Simmons_Ben

01/20/2021 at 03:38PM

9
#144 - Hawk Newton / @hawknewton

01/20/2021 at 11:55PM

9
#145 - Tim W / @TheArchdukeTim

01/21/2021 at 01:48AM

9
#146 - tyro / @tyro73739446

01/21/2021 at 03:28PM

9
#147 - Tinko Minko / @tandikula

01/22/2021 at 08:48AM

9
#148 - 蔡徐坤真是爱吃屎 / @Hashub7

01/23/2021 at 01:32PM

9
#149 - Richard Leigh Davies / @RichardDaviesAI

01/23/2021 at 02:21PM

9
#150 - Aurélien Blicq / @AurelienBlicq

01/23/2021 at 05:55PM