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

1109 active golfers, 4547 entries

Leaderboard (lowest score wins):
16
#781 - zai / @zaidhaaan

08/29/2020 at 01:08AM

16
#782 - Sebastian W. / @Sebasti91439242

09/01/2020 at 04:50PM

16
#783 - Kim Hwa Joong / @hanmwoi

09/23/2020 at 08:53PM

16
#784 - Abhishek Sriraman / @asriraman

09/28/2020 at 04:35AM

16
#785 - Christian Klos / @daooka

10/11/2020 at 01:35PM

16
#786 - vdhert / @vdhert1

10/15/2020 at 01:00PM

16
#787 - Pietari Heino / @PietariHeino

10/15/2020 at 02:35PM

16
#788 - Александр Сорокин / @zhigan175

10/30/2020 at 12:53PM

16
#789 - Laura Skillington / @lauraskills1

11/24/2020 at 09:38PM

16
#790 - Camden Cheek / @ccheek21

12/20/2020 at 04:10AM

16
#791 - Vikram Natarajan / @VikNatr

01/17/2021 at 07:47AM

16
#792 - Codle / @Coolchao

01/19/2021 at 08:03AM

16
#793 - ttauveron / @ttauveron1

01/21/2021 at 12:58AM

16
#794 - Mateusz Kaniecki / @MateuszKanieck1

02/01/2021 at 07:46PM

16
#795 - Ugg / @Ugg_dvmx

02/25/2021 at 08:06AM

16
#796 - grosa / @_grosa_

06/09/2021 at 04:29AM

16
#797 - SimonAKing / @simon_aking

08/13/2022 at 02:22PM

16
#798 - s / @s68202273

09/06/2022 at 08:42PM

16
#799 - Justin Fisher / @justinfisherr

01/29/2025 at 04:21PM

17
#800 - asdf / @asdf06706771

08/02/2020 at 06:11AM

17
#801 - random_bird9090 / @RBird9090

08/09/2020 at 07:39PM

17
#802 - mario / @mario84586731

08/24/2020 at 02:11PM

17
#803 - Dr Rev J. “I am not a bot!” Kirchartz, KSC, KHS / @JKirchartz

09/09/2020 at 01:09PM

17
#804 - 이종혁 / @BluePaisa

09/17/2020 at 10:01AM

17
#805 - Luke Pafford / @lukep135

09/30/2020 at 02:54PM

17
#806 - AAbraxas / @AAbraxas1

10/07/2020 at 08:56PM

17
#807 - Nima HeydariNasab / @Radio_Nima

10/08/2020 at 12:43PM

17
#808 - Jordan Martel / @martelosaurus

10/13/2020 at 03:17AM

17
#809 - Ahmet Said AK / @asaidak

10/18/2020 at 07:51PM

17
#810 - chewie / @chewie29261190

10/28/2020 at 11:39AM