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 88 remaining solutions by signing in and submitting your own entry
#89 Maurice Schmicking / @m_schmicking - Score: 197 - 11/09/23 @ 20:22
:%s/\[<0xc3><0xb0><BS>d<BS>\d]<BS>\]/\\footnote{This is the second footnote.}<CR>/seond<CR>/second<CR>ncawfirst <Esc>ncawsecond <Esc>ncawthird <Esc>ncawd<BS>fourth <Esc>ncawfifth <Esc>ncawsixth <Esc>ncawseventh <Esc>ncaweighth <Esc>ncawNinth <Esc>jjDGV20kjjd10o<Esc>ZZ

0 comments


Created by: @DzolliH

89 active golfers, 323 entries

Leaderboard (lowest score wins):
31
#31 - Geoff Liu / @geoff_liu

09/23/2023 at 08:25PM

33
#32 - Alex / @AlexanderHeatl2

08/27/2022 at 08:18PM

33
#33 - erik.forex / @ErikForex

07/14/2023 at 11:07AM

33
#34 - Michele Moio / @mmoio

12/18/2023 at 10:45AM

34
#35 - quemeraisc / @quemeraisc

07/04/2022 at 01:25PM

34
#36 - Mika Dede / @xerv0n

09/02/2022 at 04:20AM

37
#37 - TimMcGuire / @mcguire

07/11/2022 at 01:11AM

37
#38 - usermod / @g_usermod

02/09/2023 at 07:19PM

37
#39 - ace / @PercyLixc

07/30/2023 at 01:01PM

38
#40 - Will Long / @WillLon30283972

06/27/2022 at 11:38PM

38
#41 - Markus / @dayshade_7

07/13/2022 at 12:20PM

38
#42 - Jay Sepkus / @AngrySpongeFace

09/20/2022 at 02:36PM

38
#43 - Austin Wolfgram / @SerCarrotstrip

10/13/2022 at 05:41PM

38
#44 - Mrmclarrinson / @mrmclarrinson

12/10/2022 at 05:55PM

39
#45 - Andrew Morris / @andrew_morris

07/20/2022 at 11:04PM

39
#46 - damien / @GreatTestyTest

09/17/2022 at 09:26PM

39
#47 - John Huynh / @huynh_j93

11/08/2022 at 06:37PM

39
#48 - 0xf00ff00f / @0xf00ff00f

01/15/2023 at 09:44PM

39
#49 - Sergio / @SergioVl12

04/22/2023 at 03:48AM

40
#50 - mika / @mika31120321

07/31/2022 at 12:38PM

40
#51 - ohwell / @KiranClose

08/08/2022 at 12:46PM

40
#52 - Himanshu Tank / @himanshutank75

10/14/2022 at 02:32PM

40
#53 - Iron Manders / @MandersIron

10/25/2022 at 09:20PM

40
#54 - Arey125 / @Arey125

01/16/2024 at 07:19AM

41
#55 - キムラ・OPEL・ユウジ / @kimurayuuji79

10/04/2022 at 03:59AM

41
#56 - Stuart Spinner / @StuartSpinner

01/02/2023 at 07:25PM

41
#57 - samuel erlands / @ErlandsSam52210

08/08/2023 at 12:25PM

41
#58 - Anaritus / @Anaritus

02/24/2024 at 09:25AM

42
#59 - Nathan Iszlaub / @NIszlaub

10/21/2022 at 04:47PM

43
#60 - gragedratshg / @gragedratshg

09/27/2022 at 08:15PM