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):
33
#661 - TimWolla / @TimWolla

03/13/2014 at 09:16PM

33
#662 - daltonridenhour / @daltonridenhour

12/27/2014 at 11:14PM

33
#663 - Carl Egbert / @CarlOEgbert

06/12/2017 at 12:54AM

33
#664 - Vim Golfer / @VimGolfer6

08/26/2019 at 11:17AM

34
#665 - Joel Larsson / @tilljoel

02/29/2012 at 01:10PM

34
#666 - a / @tztape

04/29/2012 at 07:22PM

34
#667 - Bart of Denver / @bartofdenver

08/12/2013 at 02:01PM

34
#668 - Brian Peiris / @brianpeiris

12/28/2013 at 05:41AM

34
#669 - Felipe Jaramillo F / @mrfelipe

04/02/2014 at 05:22AM

34
#670 - mathac / @mathacgolf

05/04/2014 at 09:50PM

34
#671 - Grant Sheehan / @grizzle_grant

06/17/2016 at 10:20PM

35
#672 - Christopher Brew / @Seph1rothVII

03/13/2012 at 09:01PM

35
#673 - Andreas Maierhofer / @tjahma

04/03/2012 at 05:54PM

35
#674 - magdzikk / @magdzikk1

04/14/2012 at 05:07PM

35
#675 - J Paul Daigle / @philosodad

04/22/2012 at 06:26PM

35
#676 - Joe Smith / @Yasumoto

04/29/2012 at 07:45AM

35
#677 - Benjamin Sergeant / @bsergean

06/05/2012 at 04:38PM

35
#678 - wes / @_weslly

09/23/2012 at 06:48PM

35
#679 - Jay B Martin / @jaybmart

12/03/2013 at 03:53AM

35
#680 - Craig Corcoran / @craigcorc

01/30/2014 at 07:20AM

35
#681 - iNaKoll / @iNaKoll

05/08/2016 at 04:00PM

35
#682 - Joe Cho / @iminsik

12/31/2018 at 12:38AM

35
#683 - Oren Koriat / @KoriatOren

01/18/2019 at 02:10PM

35
#684 - Кирилл Бу / @btpopkchaaanfyf

03/02/2019 at 07:55PM

35
#685 - Aaron / @_Lordofthevoid_

12/01/2019 at 02:19PM

36
#686 - levicook / @levicook

03/28/2012 at 07:32PM

36
#687 - Aaron Santos / @aaron_santos

04/18/2012 at 08:11PM

36
#688 - Dima / @diarworld

04/25/2012 at 06:20PM

36
#689 - Malte R / @maltoe

11/07/2014 at 06:19PM

36
#690 - Gurukandhamoorthi / @Gurukandhamoor1

07/10/2017 at 02:50PM