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):
20
#241 - tPenguinLTG / @tpenguinltg

05/15/2016 at 06:55AM

20
#242 - MS / @schrectacular

06/08/2017 at 04:06PM

20
#243 - Jens C. Hansen / @jens_clh

11/21/2017 at 04:26PM

20
#244 - Evgeny`s Kindle / @EvgenyKindle

04/27/2018 at 11:37AM

20
#245 - Norbert / @mullno

06/25/2018 at 06:45PM

20
#246 - Hatsubaku / @hatsubaku

11/04/2018 at 12:04AM

20
#247 - Mihai / @mihaicristiant

12/04/2018 at 03:19PM

20
#248 - band / @band26376522

12/04/2018 at 11:54PM

20
#249 - Bart Kleijngeld / @BartKleijngeld

12/24/2018 at 10:12PM

20
#250 - churaki / @churaki

01/29/2019 at 12:10PM

20
#251 - Mateen Ulhaq / @sicariusnoctis

02/15/2019 at 03:40AM

20
#252 - Nick Yeow / @nickyeow

05/23/2019 at 11:05AM

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

06/19/2019 at 09:16PM

20
#254 - Himavanth Reddy / @Himavanth1909

08/12/2019 at 09:10AM

20
#255 - Cassandra / @kascein

09/18/2019 at 10:40PM

20
#256 - Ben Carney / @ben_carney

10/02/2019 at 09:44PM

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

02/21/2012 at 12:40PM

21
#258 - Pavlo Klets / @p01nt

02/21/2012 at 01:39PM

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

02/21/2012 at 05:09PM

21
#260 - Tesnorth / @Tesnorth

02/21/2012 at 07:09PM

21
#261 - Jason Felice / @eraserhd

02/22/2012 at 12:21AM

21
#262 - Trevor Powell / @DoomedBunnies

02/22/2012 at 06:01AM

21
#263 - Vasil Sakarov / @vsakarov

02/22/2012 at 06:23AM

21
#264 - Henri Wiechers / @hwiechers

02/22/2012 at 07:16AM

21
#265 - Song Zheng / @songz

02/22/2012 at 09:15AM

21
#266 - William Dunand / @wdunand

02/23/2012 at 06:05AM

21
#267 - Michael Jin / @michaeljin

02/23/2012 at 06:31AM

21
#268 - veki / @vx_ras

02/23/2012 at 11:03AM

21
#269 - Alex Koloskov / @xenocid

02/23/2012 at 09:26PM

21
#270 - Alan Oliver / @alol

02/25/2012 at 01:06PM