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 4f438739f5a8d70001000019

replacing each line of a block selection

replace each line's ../assets/js with /javascripts

Start file
<script src="../assets/js/jquery.js"></script>
<script src="../assets/js/bootstrap-transition.js"></script>
<script src="../assets/js/bootstrap-alert.js"></script>
<script src="../assets/js/bootstrap-modal.js"></script>
<script src="../assets/js/bootstrap-dropdown.js"></script>

<script src="../assets/js/bootstrap-scrollspy.js"></script>
<script src="../assets/js/bootstrap-tab.js"></script>
<script src="../assets/js/bootstrap-tooltip.js"></script>
<script src="../assets/js/bootstrap-popover.js"></script>
<script src="../assets/js/bootstrap-button.js"></script>
<script src="../assets/js/bootstrap-collapse.js"></script>

<script src="../assets/js/bootstrap-carousel.js"></script>
<script src="../assets/js/bootstrap-typeahead.js"></script>
End file
<script src="/javascripts/jquery.js"></script>
<script src="/javascripts/bootstrap-transition.js"></script>
<script src="/javascripts/bootstrap-alert.js"></script>
<script src="/javascripts/bootstrap-modal.js"></script>
<script src="/javascripts/bootstrap-dropdown.js"></script>

<script src="/javascripts/bootstrap-scrollspy.js"></script>
<script src="/javascripts/bootstrap-tab.js"></script>
<script src="/javascripts/bootstrap-tooltip.js"></script>
<script src="/javascripts/bootstrap-popover.js"></script>
<script src="/javascripts/bootstrap-button.js"></script>
<script src="/javascripts/bootstrap-collapse.js"></script>

<script src="/javascripts/bootstrap-carousel.js"></script>
<script src="/javascripts/bootstrap-typeahead.js"></script>

View Diff

1,5c1,5
< <script src="../assets/js/jquery.js"></script>
< <script src="../assets/js/bootstrap-transition.js"></script>
< <script src="../assets/js/bootstrap-alert.js"></script>
< <script src="../assets/js/bootstrap-modal.js"></script>
< <script src="../assets/js/bootstrap-dropdown.js"></script>
---
> <script src="/javascripts/jquery.js"></script>
> <script src="/javascripts/bootstrap-transition.js"></script>
> <script src="/javascripts/bootstrap-alert.js"></script>
> <script src="/javascripts/bootstrap-modal.js"></script>
> <script src="/javascripts/bootstrap-dropdown.js"></script>
7,12c7,12
< <script src="../assets/js/bootstrap-scrollspy.js"></script>
< <script src="../assets/js/bootstrap-tab.js"></script>
< <script src="../assets/js/bootstrap-tooltip.js"></script>
< <script src="../assets/js/bootstrap-popover.js"></script>
< <script src="../assets/js/bootstrap-button.js"></script>
< <script src="../assets/js/bootstrap-collapse.js"></script>
---
> <script src="/javascripts/bootstrap-scrollspy.js"></script>
> <script src="/javascripts/bootstrap-tab.js"></script>
> <script src="/javascripts/bootstrap-tooltip.js"></script>
> <script src="/javascripts/bootstrap-popover.js"></script>
> <script src="/javascripts/bootstrap-button.js"></script>
> <script src="/javascripts/bootstrap-collapse.js"></script>
14,15c14,15
< <script src="../assets/js/bootstrap-carousel.js"></script>
< <script src="../assets/js/bootstrap-typeahead.js"></script>
---
> <script src="/javascripts/bootstrap-carousel.js"></script>
> <script src="/javascripts/bootstrap-typeahead.js"></script>

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 703 remaining solutions by signing in and submitting your own entry
#704 Teilhard de Chardin / @tdChardin - Score: 75 - 10/24/13 @ 20:47
:%s/../a<BS><BS>//assetes<BS><BS>s//js/<Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS>\<Right><Right><Right><Right><Right><Right><Right><Right><BS>\<Right><Right><Right><Right>\/javascripts/g<CR>:wq<CR>

0 comments


Created by: @pklingem

704 active golfers, 2618 entries

Leaderboard (lowest score wins):
18
#91 - Ilya Shakirov / @aelaau

03/22/2017 at 10:18AM

18
#92 - 梧桐王子 / @WutongYujie

04/30/2017 at 10:10AM

18
#93 - Remus Dalrymple / @bornintheflames

05/05/2017 at 11:39PM

18
#94 - 杨洋 / @176795444

07/02/2017 at 03:29AM

18
#95 - Bennett Bernardoni / @BBernardoni

07/03/2017 at 07:35PM

18
#96 - Михаил Добров / @mSuGfwFz2ZNvv5b

07/10/2017 at 05:30PM

18
#97 - Baine Wedlock / @BaineWedlock

08/13/2017 at 02:05PM

18
#98 - Darren Weston / @dazWestonUK

08/30/2017 at 05:47PM

18
#99 - Turkey Man / @lvturkeyman

11/10/2017 at 08:12AM

18
#100 - Brandon Blakeley / @zkelvin

11/25/2017 at 03:53AM

18
#101 - ParasamGateZero / @ParasamGateZero

02/03/2018 at 06:22AM

18
#102 - GreenPinguin / @GreenPinguin2

03/14/2018 at 04:51PM

18
#103 - towc / @MateiCopot

05/25/2018 at 05:34PM

18
#104 - Daniël De Koker / @daniel_koker

07/01/2018 at 10:24PM

18
#105 - Jeff / @sir_wiggles3

09/09/2018 at 09:58PM

18
#106 - Bart3k / @Bart3k3

09/12/2018 at 07:04AM

18
#107 - Michael Buckley / @apolatg

10/03/2018 at 07:23PM

18
#108 - Roger Bongers / @RogerBongers

10/07/2018 at 10:31PM

18
#109 - Dax / @zacoxi

11/09/2018 at 07:44AM

18
#110 - Vimfiz / @vimfiz

04/23/2019 at 05:44PM

18
#111 - ow / @ow34480012

05/02/2019 at 07:57AM

18
#112 - Grant / @grant_7788

05/07/2019 at 02:00AM

18
#113 - mkaminaga / @mkmng3

07/01/2019 at 09:09AM

18
#114 - Miłosz Łakomy / @foobar01123

08/02/2019 at 07:59AM

18
#115 - sooqua / @sooqua

08/09/2019 at 08:10AM

18
#116 - Mario Olofo / @mario_olofo

10/24/2019 at 12:34AM

18
#117 - Delon / @delonleonard

01/05/2020 at 06:53AM

19
#118 - Urtica dioica / @udioica

12/10/2012 at 04:39AM

19
#119 - Marco Hinz / @_mhinz_

05/23/2013 at 10:02AM

19
#120 - Steve Tjoa / @stevetjoa

07/09/2013 at 04:40AM