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 9v0062b2cb5d000000000222

Substraction (bis)

Solve the equations (adapted from the original @Caek_'s challenge).

Start file
aa - a =
aaa - a =
aaaa - a =
aaaaa - a =
aaaaa - aa =
aaaaaa - aaaaa =
aaaaaaa - aa =
aaaaaaa - aa =
aaaaaaaa - aa =
aaaaaaaa - aaaaa =
aaaaaaaa - aaaaaa =
aaaaaaaaa - aaa =
aaaaaaaaaa - aaaaa =
aaaaaaaaaa - aaaaaaaa =
aaaaaaaaaaa - aaaa =
aaaaaaaaaaa - aaaaa =
aaaaaaaaaaaaa - aaaaaa =
aaaaaaaaaaaaaa - aaa =
aaaaaaaaaaaaaaa - aa =
aaaaaaaaaaaaaaaa - aaaaaaaa =
End file
aa - a = a
aaa - a = aa
aaaa - a = aaa
aaaaa - a = aaaa
aaaaa - aa = aaa
aaaaaa - aaaaa = a
aaaaaaa - aa = aaaaa
aaaaaaa - aa = aaaaa
aaaaaaaa - aa = aaaaaa
aaaaaaaa - aaaaa = aaa
aaaaaaaa - aaaaaa = aa
aaaaaaaaa - aaa = aaaaaa
aaaaaaaaaa - aaaaa = aaaaa
aaaaaaaaaa - aaaaaaaa = aa
aaaaaaaaaaa - aaaa = aaaaaaa
aaaaaaaaaaa - aaaaa = aaaaaa
aaaaaaaaaaaaa - aaaaaa = aaaaaaa
aaaaaaaaaaaaaa - aaa = aaaaaaaaaaa
aaaaaaaaaaaaaaa - aa = aaaaaaaaaaaaa
aaaaaaaaaaaaaaaa - aaaaaaaa = aaaaaaaa

View Diff

1,20c1,20
< aa - a =
< aaa - a =
< aaaa - a =
< aaaaa - a =
< aaaaa - aa =
< aaaaaa - aaaaa =
< aaaaaaa - aa =
< aaaaaaa - aa =
< aaaaaaaa - aa =
< aaaaaaaa - aaaaa =
< aaaaaaaa - aaaaaa =
< aaaaaaaaa - aaa =
< aaaaaaaaaa - aaaaa =
< aaaaaaaaaa - aaaaaaaa =
< aaaaaaaaaaa - aaaa =
< aaaaaaaaaaa - aaaaa =
< aaaaaaaaaaaaa - aaaaaa =
< aaaaaaaaaaaaaa - aaa =
< aaaaaaaaaaaaaaa - aa =
< aaaaaaaaaaaaaaaa - aaaaaaaa =
---
> aa - a = a
> aaa - a = aa
> aaaa - a = aaa
> aaaaa - a = aaaa
> aaaaa - aa = aaa
> aaaaaa - aaaaa = a
> aaaaaaa - aa = aaaaa
> aaaaaaa - aa = aaaaa
> aaaaaaaa - aa = aaaaaa
> aaaaaaaa - aaaaa = aaa
> aaaaaaaa - aaaaaa = aa
> aaaaaaaaa - aaa = aaaaaa
> aaaaaaaaaa - aaaaa = aaaaa
> aaaaaaaaaa - aaaaaaaa = aa
> aaaaaaaaaaa - aaaa = aaaaaaa
> aaaaaaaaaaa - aaaaa = aaaaaa
> aaaaaaaaaaaaa - aaaaaa = aaaaaaa
> aaaaaaaaaaaaaa - aaa = aaaaaaaaaaa
> aaaaaaaaaaaaaaa - aa = aaaaaaaaaaaaa
> aaaaaaaaaaaaaaaa - aaaaaaaa = aaaaaaaa

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 65 remaining solutions by signing in and submitting your own entry
#66 Nougatine Naja / @NougatineNaja - Score: 332 - 06/30/22 @ 10:11
:%s/\v(a*)<Left><Left><Left><Left>^<Right><Right><Right><Right> - a =<BS>\= |<BS>\1<BS><BS>/<Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Right><Right><Right><Right>(<Right><Right><Right><Right><Right><Right><Right><Right>)<Up><Up><Up><Up><Up><Right><BS>/\1\2\1<CR>:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS>\<BS>/<BS><Right><Right><BS><Left>\<Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Left><Left> <Right><Right><CR>0000nnnnn$xj.u$xj$xj$x<Esc>:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>a<CR>n$2xxuuu<C-R>$2Xmnn$2Xj$2Xn$2Xn$2X:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>a<CR>$3Xn$3X:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>a<CR>$4X:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>a<CR>$5Xn$5Xn$5Xn$5X:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Right>a<CR>$6Xn$6X:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>aa<CR>$*$8x<Esc>u:<Up><Esc>n<Esc>:<Esc>ww*nnn$8Xn$8XZZ

0 comments


Created by: @JeanGeo20504212

66 active golfers, 299 entries

Leaderboard (lowest score wins):
22
#1 - Saki Gw / @Sakigw

06/22/2022 at 07:10PM

22
#2 - Jean George / @JeanGeo20504212

06/22/2022 at 09:33PM

22
#3 - John Braxler / @braxler

06/23/2022 at 03:31PM

22
#4 - Irakli Chigvaria / @tchigvaria

06/24/2022 at 01:19PM

22
#5 - Jon Krause / @jkrause314

06/26/2022 at 05:04AM

22
#6 - brett / @brettyukich

07/08/2022 at 02:52PM

22
#7 - Danilo J. S. Bellini / @danilobellini

07/24/2022 at 11:37PM

22
#8 - Александр Черенков / @AleksandrCeren3

07/26/2022 at 04:51AM

22
#9 - Ekalos / @_Ekalos

08/02/2022 at 10:13AM

22
#10 - sap / @sap38838304

09/16/2022 at 04:40PM

22
#11 - Topvimgolf Score / @topvimgolfscore

10/12/2022 at 08:48AM

23
#12 - 吴建明 / @pysnow5300

06/24/2022 at 10:33AM

23
#13 - YE / @DeracanthaOnos

07/04/2022 at 04:17AM

23
#14 - Dmitry Antonyuk / @dantonuke

07/06/2022 at 06:55AM

23
#15 - wpr__ / @wpr____

07/13/2022 at 10:42PM

23
#16 - Lory / @Lory46845742

07/22/2022 at 03:53PM

23
#17 - 비비빅 / @bibibig80714274

09/06/2022 at 04:38PM

26
#18 - Smylers / @Smylers2

06/22/2022 at 05:17PM

27
#19 - sapir malka / @sapir5522

06/22/2022 at 12:27PM

27
#20 - TimMcGuire / @mcguire

07/09/2022 at 04:07PM

27
#21 - loupiot.veloce / @LoupiotVeloce

07/20/2022 at 03:12PM

27
#22 - Jean Michel Furtado M'Peko / @furtadojean1

10/01/2022 at 11:56PM

27
#23 - 우정민 / @jeongmin2021

10/10/2022 at 04:52PM

28
#24 - Robberechts Arne / @ArneRobberechts

06/22/2022 at 10:45AM

28
#25 - ShookerAndBeta / @Shooker2012

06/24/2022 at 11:32AM

28
#26 - quemeraisc / @quemeraisc

07/04/2022 at 12:36PM

28
#27 - nauj / @nauj_w

07/29/2022 at 03:15PM

29
#28 - Kiran Rajpurohit / @KiranClose

08/08/2022 at 12:08PM

29
#29 - vimgolf / @LearnVimGolf

09/28/2022 at 02:53PM

30
#30 - サイシ / @tairar_314

06/27/2022 at 06:40PM