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

Changing around text with citations

Based off of something I saw on reddit

Start file
Lorem ipsum dolor sit amet consectetur adipisicing elit[1]. Maxime mollitia,
molestiae quas vel sint commodi[2] repudiandae consequuntur voluptatum laborum
numquam blanditiis harum quisquam eius sed odit fugiat iusto fuga praesentium
optio, eaque rerum![3] Provident similique accusantium nemo autem. Veritatis
obcaecati tenetur iure eius earum ut molestias architecto voluptate aliquam
nihil,[4] eveniet aliquid culpa officia aut! Impedit sit sunt quaerat, odit,
tenetur error, harum nesciunt ipsum debitis quas aliquid. Reprehenderit,
quia. Quo neque error repudiandae fuga? Ipsa laudantium molestias eos 
sapiente officiis modi at sunt excepturi expedita sint? Sed quibusdam
recusandae alias error harum maxime adipisci amet laborum[5]. Perspiciatis 
minima nesciunt dolorem! Officiis iure rerum voluptates a cumque velit 
quibusdam sed amet tempora[6]. Sit laborum ab, eius fugit doloribus tenetur 
fugiat, temporibus enim commodi iusto libero magni deleniti quod quam 
consequuntur! Commodi minima excepturi repudiandae velit hic maxime
doloremque[7]. Quaerat provident commodi consectetur veniam similique ad 
earum omnis ipsum saepe, voluptas, hic voluptates pariatur est explicabo 
fugiat, dolorum eligendi quam cupiditate excepturi mollitia maiores labore 
suscipit quas? Nulla, placeat[8]. Voluptatem quaerat non architecto ab laudantium
modi minima sunt esse temporibus sint culpa, recusandae aliquam numquam 
totam ratione voluptas quod exercitationem fuga[9]. Possimus quis earum veniam 
quasi aliquam eligendi, placeat qui corporis!


[1] This is the first footnote.

[2] This is the second footnote.

[3] This is the third footnote.

[4] This is the fourth footnote.

[5] This is the fifth footnote.

[6] This is the sixth footnote.

[7] This is the seventh footnote.

[8] This is the eighth footnote.

[9] This is the Ninth footnote.
End file
Lorem ipsum dolor sit amet consectetur adipisicing elit\footnote{This is the first footnote.}. Maxime mollitia,
molestiae quas vel sint commodi\footnote{This is the second footnote.} repudiandae consequuntur voluptatum laborum
numquam blanditiis harum quisquam eius sed odit fugiat iusto fuga praesentium
optio, eaque rerum!\footnote{This is the third footnote.} Provident similique accusantium nemo autem. Veritatis
obcaecati tenetur iure eius earum ut molestias architecto voluptate aliquam
nihil,\footnote{This is the fourth footnote.} eveniet aliquid culpa officia aut! Impedit sit sunt quaerat, odit,
tenetur error, harum nesciunt ipsum debitis quas aliquid. Reprehenderit,
quia. Quo neque error repudiandae fuga? Ipsa laudantium molestias eos 
sapiente officiis modi at sunt excepturi expedita sint? Sed quibusdam
recusandae alias error harum maxime adipisci amet laborum\footnote{This is the fifth footnote.}. Perspiciatis 
minima nesciunt dolorem! Officiis iure rerum voluptates a cumque velit 
quibusdam sed amet tempora\footnote{This is the sixth footnote.}. Sit laborum ab, eius fugit doloribus tenetur 
fugiat, temporibus enim commodi iusto libero magni deleniti quod quam 
consequuntur! Commodi minima excepturi repudiandae velit hic maxime
doloremque\footnote{This is the seventh footnote.}. Quaerat provident commodi consectetur veniam similique ad 
earum omnis ipsum saepe, voluptas, hic voluptates pariatur est explicabo 
fugiat, dolorum eligendi quam cupiditate excepturi mollitia maiores labore 
suscipit quas? Nulla, placeat\footnote{This is the eighth footnote.}. Voluptatem quaerat non architecto ab laudantium
modi minima sunt esse temporibus sint culpa, recusandae aliquam numquam 
totam ratione voluptas quod exercitationem fuga\footnote{This is the Ninth footnote.}. Possimus quis earum veniam 
quasi aliquam eligendi, placeat qui corporis!










View Diff

--- before.md	2022-06-19 15:49:51.773479521 -0700
+++ after.md	2022-06-20 19:53:05.575086591 -0700
@@ -1,40 +1,31 @@
-Lorem ipsum dolor sit amet consectetur adipisicing elit[1]. Maxime mollitia,
-molestiae quas vel sint commodi[2] repudiandae consequuntur voluptatum laborum
+Lorem ipsum dolor sit amet consectetur adipisicing elit\footnote{This is the first footnote.}. Maxime mollitia,
+molestiae quas vel sint commodi\footnote{This is the second footnote.} repudiandae consequuntur voluptatum laborum
 numquam blanditiis harum quisquam eius sed odit fugiat iusto fuga praesentium
-optio, eaque rerum![3] Provident similique accusantium nemo autem. Veritatis
+optio, eaque rerum!\footnote{This is the third footnote.} Provident similique accusantium nemo autem. Veritatis
 obcaecati tenetur iure eius earum ut molestias architecto voluptate aliquam
-nihil,[4] eveniet aliquid culpa officia aut! Impedit sit sunt quaerat, odit,
+nihil,\footnote{This is the fourth footnote.} eveniet aliquid culpa officia aut! Impedit sit sunt quaerat, odit,
 tenetur error, harum nesciunt ipsum debitis quas aliquid. Reprehenderit,
 quia. Quo neque error repudiandae fuga? Ipsa laudantium molestias eos 
 sapiente officiis modi at sunt excepturi expedita sint? Sed quibusdam
-recusandae alias error harum maxime adipisci amet laborum[5]. Perspiciatis 
+recusandae alias error harum maxime adipisci amet laborum\footnote{This is the fifth footnote.}. Perspiciatis 
 minima nesciunt dolorem! Officiis iure rerum voluptates a cumque velit 
-quibusdam sed amet tempora[6]. Sit laborum ab, eius fugit doloribus tenetur 
+quibusdam sed amet tempora\footnote{This is the sixth footnote.}. Sit laborum ab, eius fugit doloribus tenetur 
 fugiat, temporibus enim commodi iusto libero magni deleniti quod quam 
 consequuntur! Commodi minima excepturi repudiandae velit hic maxime
-doloremque[7]. Quaerat provident commodi consectetur veniam similique ad 
+doloremque\footnote{This is the seventh footnote.}. Quaerat provident commodi consectetur veniam similique ad 
 earum omnis ipsum saepe, voluptas, hic voluptates pariatur est explicabo 
 fugiat, dolorum eligendi quam cupiditate excepturi mollitia maiores labore 
-suscipit quas? Nulla, placeat[8]. Voluptatem quaerat non architecto ab laudantium
+suscipit quas? Nulla, placeat\footnote{This is the eighth footnote.}. Voluptatem quaerat non architecto ab laudantium
 modi minima sunt esse temporibus sint culpa, recusandae aliquam numquam 
-totam ratione voluptas quod exercitationem fuga[9]. Possimus quis earum veniam 
+totam ratione voluptas quod exercitationem fuga\footnote{This is the Ninth footnote.}. Possimus quis earum veniam 
 quasi aliquam eligendi, placeat qui corporis!
 
 
-[1] This is the first footnote.
 
-[2] This is the second footnote.
 
-[3] This is the third footnote.
 
-[4] This is the fourth footnote.
 
-[5] This is the fifth footnote.
 
-[6] This is the sixth footnote.
 
-[7] This is the seventh footnote.
 
-[8] This is the eighth footnote.
 
-[9] This is the Ninth footnote.

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 46 remaining solutions by signing in and submitting your own entry
#47 Laughing Cavalier / @jovial_cavalier - Score: 73 - 10/22/22 @ 19:14
qq?\d<CR>"aya[D?<C-R>a<CR>pca[\footnote{}<Esc>P:s/\[\|\]\|\d//g<CR>:s/\{ <BS><BS><BS>{ /{<CR>Gddq8@qZZ

0 comments


Created by: @DzolliH

47 active golfers, 162 entries

Leaderboard (lowest score wins):
28
#1 - Smylers / @Smylers2

06/21/2022 at 01:33PM

28
#2 - Irakli Chigvaria / @tchigvaria

06/21/2022 at 02:39PM

28
#3 - Jean George / @JeanGeo20504212

06/21/2022 at 04:36PM

28
#4 - Jon Krause / @jkrause314

06/24/2022 at 03:31AM

28
#5 - Хью Джолли / @DzolliH

06/25/2022 at 01:06AM

28
#6 - Kai Eckert (@kaieckert@openbiblio.social) / @kaiec

07/10/2022 at 11:53PM

28
#7 - John Braxler / @braxler

07/12/2022 at 08:45PM

28
#8 - Ekalos / @_Ekalos

07/16/2022 at 10:37AM

28
#9 - Danilo J. S. Bellini / @danilobellini

07/19/2022 at 06:59AM

28
#10 - Leroy Jenkins / @LeroyJe70429357

09/13/2022 at 07:17PM

28
#11 - sap / @sap38838304

09/16/2022 at 05:13PM

28
#12 - Alex Lewin / @_AlexLewin

09/20/2022 at 05:01PM

28
#13 - Santosh Latpate / @sblatpate

09/25/2022 at 11:35PM

28
#14 - vimgolf / @LearnVimGolf

09/29/2022 at 09:00PM

28
#15 - Topvimgolf Score / @topvimgolfscore

10/12/2022 at 06:09PM

28
#16 - fraktal / @FraktalRebirth

10/27/2022 at 08:49AM

29
#17 - (ノ◕ヮ◕)ノ*:・゚✧ / @Mebazaa

07/02/2022 at 02:44PM

29
#18 - Pauli Taipale / @PauliTaipale

07/09/2022 at 09:50AM

29
#19 - Lory / @Lory46845742

07/22/2022 at 05:31PM

33
#20 - Alex / @AlexanderHeatl2

08/27/2022 at 08:18PM

34
#21 - quemeraisc / @quemeraisc

07/04/2022 at 01:25PM

34
#22 - Mika Dede / @xerv0n

09/02/2022 at 04:20AM

37
#23 - TimMcGuire / @mcguire

07/11/2022 at 01:11AM

38
#24 - Will Long / @WillLon30283972

06/27/2022 at 11:38PM

38
#25 - Markus / @dayshade_7

07/13/2022 at 12:20PM

38
#26 - Jay Sepkus / @AngrySpongeFace

09/20/2022 at 02:36PM

38
#27 - Austin Wolfgram / @SerCarrotstrip

10/13/2022 at 05:41PM

39
#28 - Andrew Morris / @andrew_morris

07/20/2022 at 11:04PM

39
#29 - damien / @GreatTestyTest

09/17/2022 at 09:26PM

39
#30 - John Huynh / @huynh_j93

11/08/2022 at 06:37PM