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

109 active golfers, 580 entries

Leaderboard (lowest score wins):
21
#1 - tien / @tien40766111

10/30/2023 at 04:10PM

21
#2 - John Braxler / @braxler

11/07/2023 at 08:03PM

21
#3 - Danilo J. S. Bellini 🥊🇧🇷 / @danilobellini

11/08/2023 at 10:56AM

21
#4 - Jean George / @JeanGeo20504212

12/22/2023 at 02:00PM

21
#5 - RiskyDissonance / @riskydissonance

02/26/2024 at 11:34AM

22
#6 - Saki Gw / @Sakigw

06/22/2022 at 07:10PM

22
#7 - Irakli Chigvaria / @tchigvaria

06/24/2022 at 01:19PM

22
#8 - Jon Krause / @jkrause314

06/26/2022 at 05:04AM

22
#9 - brett / @brettyukich

07/08/2022 at 02:52PM

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

07/26/2022 at 04:51AM

22
#11 - Ekalos / @_Ekalos

08/02/2022 at 10:13AM

22
#12 - sap / @sap38838304

09/16/2022 at 04:40PM

22
#13 - Topvimgolf Score / @topvimgolfscore

10/12/2022 at 08:48AM

22
#14 - Cláudio Caseiro / @ccaseiro

03/20/2023 at 01:01AM

22
#15 - bignos / @bignos2

03/27/2023 at 09:32AM

22
#16 - erik.forex / @ErikForex

07/14/2023 at 10:22AM

22
#17 - Luoyb / @Luoyb

10/20/2023 at 05:51AM

22
#18 - 悟史 / @A1OBJTxN5fTg5EJ

12/02/2023 at 10:38AM

22
#19 - Caesar 🏴󠁧󠁢󠁷󠁬󠁳󠁿 / @NotRexButCaesar

01/28/2024 at 11:11PM

22
#20 - Peppa Pig / @PeppaPi95550250

04/09/2024 at 10:38AM

23
#21 - 吴建明 / @pysnow5300

06/24/2022 at 10:33AM

23
#22 - YE / @DeracanthaOnos

07/04/2022 at 04:17AM

23
#23 - Dmitry Antonyuk / @dantonuke

07/06/2022 at 06:55AM

23
#24 - wpr__ / @wpr____

07/13/2022 at 10:42PM

23
#25 - Lory / @Lory46845742

07/22/2022 at 03:53PM

23
#26 - 비비빅 / @bibibig80714274

09/06/2022 at 04:38PM

23
#27 - Jonas / @JonasPanizza

12/05/2022 at 07:05PM

23
#28 - Alex Oliveira / @AlexROliveira2

01/06/2023 at 02:10PM

23
#29 - John Huynh / @huynh_j93

02/21/2023 at 07:25PM

23
#30 - someperson150 / @someperson150

05/24/2023 at 02:44PM