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):
19
#181 - Lisa Ugray / @lisa_ugray

03/18/2018 at 02:40PM

19
#182 - Guirec CORBEL / @GuirecCorbel

04/04/2018 at 12:21AM

19
#183 - DHM / @DHM29978992

04/15/2018 at 04:09AM

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

06/28/2018 at 01:48AM

19
#185 - Coruja Queridinha / @miriamretka

08/30/2018 at 11:56PM

19
#186 - Rasmus Bergström / @JRasmusBm

10/01/2018 at 03:05PM

19
#187 - John Oleksowicz / @JohnOlek

10/09/2018 at 08:33PM

19
#188 - Luca db / @cyan_pencil

11/18/2018 at 01:05AM

19
#189 - name / @name65894813

11/19/2018 at 07:47PM

19
#190 - majo senf / @majo_senf

06/18/2019 at 09:01AM

19
#191 - Chester Yap / @Chest_ErYap

07/20/2019 at 07:30PM

19
#192 - Kenny Low / @kennylow

09/02/2019 at 04:00PM

19
#193 - Ariel Miculas / @ArielMiculas

09/24/2019 at 10:49PM

19
#194 - Sebastian / @diasitede

10/08/2019 at 06:33PM

19
#195 - Viktor Styrud / @ViktorStyrud

10/11/2019 at 11:54AM

19
#196 - ErQ325 / @EQ325

10/13/2019 at 08:49AM

19
#197 - will / @willpnw

10/19/2019 at 09:33PM

19
#198 - vimgolfer / @vimgolfer7

11/02/2019 at 02:39PM

19
#199 - Melvin Cheung / @MelvinCheung

11/09/2019 at 04:22PM

19
#200 - Lory / @Lory46845742

11/13/2019 at 10:10AM

20
#201 - Matt Woelk / @MattWoelk

02/23/2012 at 09:04PM

20
#202 - Lukas / @cast3r

03/10/2012 at 11:30PM

20
#203 - John Anderson / @opejn

03/17/2012 at 04:28PM

20
#204 - deris / @deris0126

04/03/2012 at 01:41PM

20
#205 - sgfgdf / @sgfgdf

05/14/2012 at 09:47PM

20
#206 - Javier Blanco / @jbgutierrez

05/23/2012 at 08:21PM

20
#207 - Justin Love / @wondible

05/29/2012 at 04:51PM

20
#208 - Øystein Walle / @oysteinwalle

05/31/2012 at 06:42PM

20
#209 - Ben Alpert / @soprano

07/17/2012 at 09:39AM

20
#210 - Paul Tarjan / @ptarjan

07/29/2012 at 05:50PM