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

93 active golfers, 329 entries

Leaderboard (lowest score wins):
42
#61 - Nathan Iszlaub / @NIszlaub

10/21/2022 at 04:47PM

43
#62 - gragedratshg / @gragedratshg

09/27/2022 at 08:15PM

43
#63 - e_e / @eleloi

02/09/2023 at 09:34PM

43
#64 - b1gz / @_b1gz

03/04/2023 at 03:46AM

43
#65 - Иван / @wansmer

04/22/2023 at 06:37PM

43
#66 - Vimgolf User / @VimgolfU

10/20/2023 at 10:12AM

43
#67 - Ludovic Schwartz / @ludovicschwartz

11/17/2023 at 02:41PM

43
#68 - BrandonChenZT / @BrandonChenZT

10/26/2024 at 01:38PM

44
#69 - Brian Le / @bkylele

12/29/2023 at 11:01PM

45
#70 - PL Siddharth / @Havok1993

06/29/2022 at 07:46AM

45
#71 - oboki / @happy_oboki

07/28/2022 at 10:19AM

45
#72 - SnakitoGamer4160 / @SnakitoGamer4160

04/07/2024 at 04:42PM

46
#73 - zoomhauer / @paulonhere

01/24/2023 at 07:15PM

46
#74 - Selvaganapathy P / @canabady

03/18/2023 at 12:56PM

47
#75 - Monkey Boy / @monkey29089

09/22/2023 at 01:49PM

48
#76 - bastien batardier / @supercamarche

10/26/2022 at 08:48PM

49
#77 - JvdB01 / @JvdB001

06/27/2022 at 08:48AM

49
#78 - Nougatine Naja / @NougatineNaja

06/28/2022 at 02:58PM

49
#79 - Lily / @totallyuniquelily

04/27/2024 at 02:19PM

50
#80 - ChunaiLi / @chunai_li

07/27/2022 at 03:25AM

51
#81 - Golfer / @Golfer56598542

06/24/2022 at 11:05AM

51
#82 - vuems / @vuems2win

11/11/2022 at 12:38PM

51
#83 - Al-Baraa El-Hag / @drskoolie

01/26/2023 at 11:08AM

66
#84 - egitto / @egitto

01/04/2024 at 07:52PM

71
#85 - Desentcare / @ashuyali

08/25/2022 at 12:30PM

73
#86 - fpf3 / @jovial_cavalier

10/22/2022 at 07:14PM

76
#87 - LandR / @ListenAndR

10/16/2023 at 08:27AM

117
#88 - raadotdev / @raadotdev

08/11/2023 at 09:20PM

128
#89 - jonas-grobe / @jonas-grobe

02/02/2024 at 11:36AM

128
#90 - MatFriend / @MatFriend

09/10/2024 at 01:42AM