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
#61 - Fran├žois Marais / @maraisf

03/04/2014 at 08:06PM

18
#62 - Chaitanya Desu / @ChaituNu

05/04/2014 at 08:54PM

18
#63 - Peeby Thirtyone / @peeby31

05/05/2014 at 07:54PM

18
#64 - Jonas Arnold Clasen / @jonasclasen

06/09/2014 at 05:01PM

18
#65 - John Meisner / @jmeisned

06/24/2014 at 09:59PM

18
#66 - Rafee / @rafee_buet

07/22/2014 at 03:15PM

18
#67 - Oleg Tsymbalyuk / @oleg_tc

08/20/2014 at 06:40AM

18
#68 - Aaron Fresh / @AaronFresh7

09/13/2014 at 10:05AM

18
#69 - Johannes H. / @neVexa

09/22/2014 at 11:34AM

18
#70 - Ivan Brennan / @ivanbrennan

12/07/2014 at 02:58AM

18
#71 - Michael Giuffrida / @mgiuffrida

02/26/2015 at 08:55AM

18
#72 - E Both / @enboth

04/28/2015 at 11:39AM

18
#73 - David Nguyen / @nguydavi

06/06/2015 at 10:19AM

18
#74 - Mutter Mumble / @muttermumble

07/10/2015 at 03:19PM

18
#75 - Louis Burke / @LambdaABeta

07/13/2015 at 01:41PM

18
#76 - Liam Thurston / @lthurston188

08/17/2015 at 05:20AM

18
#77 - Wilmer Bandres / @WilmerBandres

12/14/2015 at 06:05PM

18
#78 - Aleksey Zhidkov / @AlexeyZhidkov

02/08/2016 at 03:09PM

18
#79 - Roberto Carraretto / @robcarraretto

02/21/2016 at 02:05PM

18
#80 - ben kavanagh / @bkava

02/23/2016 at 06:03PM

18
#81 - Jan Bundesmann / @janbundesmann

03/24/2016 at 03:02PM

18
#82 - Dinesh Bhosale / @MrDineshBhosale

04/01/2016 at 05:52PM

18
#83 - Ikypiky / @nerdbeereis

06/16/2016 at 12:35AM

18
#84 - Stephen Aument / @saument

09/04/2016 at 04:06AM

18
#85 - Mateusz / @Mantos77

09/13/2016 at 09:44AM

18
#86 - loki2441 / @loki2441

09/18/2016 at 11:57PM

18
#87 - Anthony Ardito / @aardito21

09/27/2016 at 10:21PM

18
#88 - trx / @trxdbg

10/13/2016 at 10:46AM

18
#89 - Zhihong Liu / @pieapple03

02/23/2017 at 05:35AM

18
#90 - Jim Bob / @babyclubber

02/28/2017 at 03:39PM