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 576c778ea4896a561b01b4f2

Copy three lines

If the site is up (by some miracle), make the text under every header identical.

Start file
First:
       
Junk text.
Second:
       
Junk text.
Third:
       
Junk text.
Last:
       
Copy these lines,
       
and replace the text
       
in each heading above.
End file
First:
       
Copy these lines,
       
and replace the text
       
in each heading above.
Second:
       
Copy these lines,
       
and replace the text
       
in each heading above.
Third:
       
Copy these lines,
       
and replace the text
       
in each heading above.
Last:
       
Copy these lines,
       
and replace the text
       
in each heading above.

View Diff

With vimgolf.com's uptime issues, I don't know if anyone will get to play this.
It's tricky though, surprisingly so. I hope a few people manage to get it to
load.

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 640 remaining solutions by signing in and submitting your own entry
#641 まきお / @makio0925 - Score: 114 - 10/30/17 @ 10:22
jjjjjjjVjjykkkkkkV@@@<Esc><Esc><Esc>jjjjjjVjjykkkkkkVpjjjjVjkpVPPuuuujjjjjjVjjykkkkkkVpjjjjjjjjVjjykkkkVpjjjjjjVjjykkVp:w<CR>:wq<CR>

0 comments


Created by: @udioica

641 active golfers, 2875 entries

Leaderboard (lowest score wins):
15
#241 - mirsemen / @mirsemen1

07/16/2019 at 07:34AM

15
#242 - Abnermtj / @Abnerjr19

09/29/2019 at 12:23PM

15
#243 - vicver09 / @vicver091

12/05/2019 at 08:14PM

15
#244 - Ebi / @ehan6

05/23/2020 at 03:27PM

15
#245 - Sebastian W. / @Sebasti91439242

09/02/2020 at 04:12PM

15
#246 - Brendan Schaenzer / @bschaenzer

09/30/2020 at 12:39PM

15
#247 - MathijsHoogland / @MathijsHoogland

11/16/2020 at 02:03PM

15
#248 - Jean George / @JeanGeo20504212

09/16/2021 at 10:12PM

15
#249 - asirago / @asiragoo

12/13/2023 at 12:50AM

16
#250 - Artur Kęsik / @arturkesik

06/24/2016 at 01:48PM

16
#251 - kuwa / @lrmystp

06/24/2016 at 04:26PM

16
#252 - Vaisian / @Vaisian

07/02/2016 at 03:54PM

16
#253 - André Peric Tavares / @andre_peric

07/20/2016 at 06:49PM

16
#254 - Sarang Khim / @sarang_khim

08/02/2016 at 11:42PM

16
#255 - Maxime Reis / @MaximeReis

08/16/2016 at 02:52PM

16
#256 - Krzysztof Borkowski / @smiechowy

09/03/2016 at 06:46PM

16
#257 - Zachary Neubert / @Mr_Saturn16347

03/17/2017 at 01:39AM

16
#258 - Daniel / @Daniel00288663

03/17/2017 at 08:04AM

16
#259 - Russell Ball / @rtball2

04/30/2017 at 09:09PM

16
#260 - Jerry Wu / @AzureSpectra

05/05/2017 at 07:38PM

16
#261 - Denis Kaluznyy / @Spy_Denis

07/18/2017 at 02:09PM

16
#262 - Jacob Buete / @JBuete

07/20/2017 at 07:48AM

16
#263 - Austin Ware / @AustinWare17

03/12/2018 at 08:13PM

16
#264 - Kaydo Alders / @Yousousen

03/15/2018 at 09:37PM

16
#265 - c0llision / @sh3llcode

05/27/2018 at 02:55PM

16
#266 - Ruby Sapphire / @RubySapphire20

12/15/2018 at 06:59AM

16
#267 - Sebastien Nicoud / @sebnukem

02/03/2019 at 10:32PM

16
#268 - MGJoe93 / @mgjoe93

03/11/2019 at 05:44PM

16
#269 - Johannes / @jossi166

03/22/2019 at 02:03AM

16
#270 - Alex Mihov / @AlexMihov

04/04/2019 at 01:42PM