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):
37
#691 - Maciej GaƂkiewicz / @mgalkiewicz

03/13/2012 at 10:28PM

37
#692 - Matt Cowski / @MattCowski

07/18/2013 at 01:34AM

37
#693 - Sheng / @shenghis

08/25/2013 at 07:56PM

37
#694 - Justin Knag / @justinknag

08/28/2014 at 12:28PM

37
#695 - Mr Sim / @gavsim

03/19/2015 at 10:55PM

37
#696 - Thijs van den Anker / @thijsvdanker

03/15/2016 at 07:01PM

37
#697 - CptBong / @cpt1bong

12/20/2018 at 12:21AM

37
#698 - Grorco / @grorco

01/07/2019 at 07:37PM

37
#699 - Martins / @Martins88554972

01/28/2019 at 07:08PM

37
#700 - Phoon / @justflashhim

05/10/2019 at 09:13PM

38
#701 - shinokada / @shinokada

02/26/2014 at 11:12PM

39
#702 - Greg Sabo / @gregsabo

02/25/2012 at 07:34PM

39
#703 - Mohit Sharma / @m0hitsharma

12/30/2013 at 05:49AM

39
#704 - Spacesh1p / @spacesh1pdev

01/04/2018 at 11:54AM

40
#705 - John Moon / @johnmoon6

11/18/2013 at 02:34PM

40
#706 - Cleberson Gomes / @Cleber_son

08/19/2018 at 07:38PM

42
#707 - fifigyuri / @fifigyuri

03/20/2012 at 06:14PM

42
#708 - Rolinh / @Rolinh42

03/08/2015 at 02:28PM

43
#709 - Tom Cammann / @tea_sea

10/16/2012 at 10:29PM

44
#710 - wilddog64 / @chengkai318

12/17/2013 at 06:50PM

45
#711 - abonec / @abonec

04/22/2012 at 04:14PM

45
#712 - pawelmhm / @pawelmhm

03/01/2014 at 07:59PM

49
#713 - Jesse House / @house9twx

07/17/2013 at 03:38PM

53
#714 - drGsus / @drGsus

07/29/2020 at 08:56AM

57
#715 - Eric / @daks_

03/05/2012 at 05:04PM

58
#716 - Noel Alejandro / @noelrock333

06/25/2012 at 07:13PM

58
#717 - Kim Le / @kimledev1

08/01/2012 at 01:59AM

74
#718 - Michael Ornellas / @ornellasmike

07/09/2012 at 10:37PM

75
#719 - Teilhard de Chardin / @tdChardin

10/24/2013 at 08:47PM