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):
20
#241 - Garrett Smith / @garrettwhsmith

03/29/2015 at 05:43PM

20
#242 - Daniel Pham / @dany_pham

10/19/2015 at 04:42PM

20
#243 - Pete Sevander / @Sevanteri

11/12/2015 at 02:27PM

20
#244 - Janine Cheng / @janineist

02/13/2016 at 01:26PM

20
#245 - Syrrim / @syrrim

03/10/2016 at 09:02PM

20
#246 - Mister Knister / @vimgolf_ctrl_x

03/17/2016 at 12:55PM

20
#247 - tPenguinLTG / @tpenguinltg

05/15/2016 at 06:55AM

20
#248 - MS / @schrectacular

06/08/2017 at 04:06PM

20
#249 - Jens C. Hansen / @jens_clh

11/21/2017 at 04:26PM

20
#250 - Evgeny`s Kindle / @EvgenyKindle

04/27/2018 at 11:37AM

20
#251 - Norbert / @mullno

06/25/2018 at 06:45PM

20
#252 - Hatsubaku / @hatsubaku

11/04/2018 at 12:04AM

20
#253 - Mihai / @mihaicristiant

12/04/2018 at 03:19PM

20
#254 - band / @band26376522

12/04/2018 at 11:54PM

20
#255 - Bart Kleijngeld / @BartKleijngeld

12/24/2018 at 10:12PM

20
#256 - churaki / @churaki

01/29/2019 at 12:10PM

20
#257 - Mateen Ulhaq / @sicariusnoctis

02/15/2019 at 03:40AM

20
#258 - Nick Yeow / @nickyeow

05/23/2019 at 11:05AM

20
#259 - Sigurður Ægir Jónsso / @siggiae

06/19/2019 at 09:16PM

20
#260 - Himavanth Reddy / @Himavanth1909

08/12/2019 at 09:10AM

20
#261 - Cassandra / @kascein

09/18/2019 at 10:40PM

20
#262 - Ben Carney / @ben_carney

10/02/2019 at 09:44PM

20
#263 - Jason Neylon / @jasonneylon

02/26/2020 at 08:05PM

20
#264 - Ryan Nevius / @ryannevius

03/20/2020 at 08:05PM

20
#265 - Bhagwan / @El_Bhagwan

05/15/2020 at 01:40AM

21
#266 - h_east (トロッコ6個) / @h_east

02/21/2012 at 12:40PM

21
#267 - Pavlo Klets / @p01nt

02/21/2012 at 01:39PM

21
#268 - 無ん垢の叫び / @john_ababa

02/21/2012 at 05:09PM

21
#269 - Tesnorth / @Tesnorth

02/21/2012 at 07:09PM

21
#270 - Jason Felice / @eraserhd

02/22/2012 at 12:21AM