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

719 active golfers, 2706 entries

Leaderboard (lowest score wins):
19
#181 - Eloi S. Quesnel / @EloiSimardQ

05/30/2017 at 03:33AM

19
#182 - Brian Hall / @_bruab_

10/30/2017 at 02:19PM

19
#183 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 02:11PM

19
#184 - Lisa Ugray / @lisa_ugray

03/18/2018 at 02:40PM

19
#185 - Guirec CORBEL / @GuirecCorbel

04/04/2018 at 12:21AM

19
#186 - DHM / @DHM29978992

04/15/2018 at 04:09AM

19
#187 - 赤佐田奈葉 / @akasatanaha_

06/28/2018 at 01:48AM

19
#188 - Coruja Queridinha / @miriamretka

08/30/2018 at 11:56PM

19
#189 - Rasmus Bergström / @JRasmusBm

10/01/2018 at 03:05PM

19
#190 - John Oleksowicz / @JohnOlek

10/09/2018 at 08:33PM

19
#191 - Luca db / @cyan_pencil

11/18/2018 at 01:05AM

19
#192 - name / @name65894813

11/19/2018 at 07:47PM

19
#193 - majo senf / @majo_senf

06/18/2019 at 09:01AM

19
#194 - Chester Yap / @Chest_ErYap

07/20/2019 at 07:30PM

19
#195 - Kenny Low / @kennylow

09/02/2019 at 04:00PM

19
#196 - Ariel Miculas / @ArielMiculas

09/24/2019 at 10:49PM

19
#197 - Sebastian / @diasitede

10/08/2019 at 06:33PM

19
#198 - Viktor Styrud / @ViktorStyrud

10/11/2019 at 11:54AM

19
#199 - ErQ325 / @EQ325

10/13/2019 at 08:49AM

19
#200 - will / @willpnw

10/19/2019 at 09:33PM

19
#201 - vimgolfer / @vimgolfer7

11/02/2019 at 02:39PM

19
#202 - Melvin Cheung / @MelvinCheung

11/09/2019 at 04:22PM

19
#203 - Lory / @Lory46845742

11/13/2019 at 10:10AM

19
#204 - Jason / @roosjason

05/16/2020 at 09:48AM

19
#205 - Ming Dai / @MingDai2

07/01/2020 at 04:07PM

19
#206 - TimMcGuire / @mcguire

08/08/2020 at 07:03PM

20
#207 - Matt Woelk / @MattWoelk

02/23/2012 at 09:04PM

20
#208 - Lukas / @cast3r

03/10/2012 at 11:30PM

20
#209 - John Anderson / @opejn

03/17/2012 at 04:28PM

20
#210 - deris / @deris0126

04/03/2012 at 01:41PM