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):
25
#511 - niwatoco / @yoshitune9

07/20/2018 at 03:32PM

25
#512 - 14758f1afd44c09b7992073ccf00b43d / @14758f1afd44c01

11/26/2018 at 07:12PM

25
#513 - wrglprmft1 / @wrglprmft1

01/26/2019 at 02:42PM

26
#514 - Hachez Floran / @FloranHachez

09/02/2013 at 08:19PM

26
#515 - Jason Walton / @jay_ay_y

04/11/2014 at 11:12PM

26
#516 - Kirill / @wedens_

07/14/2014 at 05:09AM

26
#517 - Nicholas McHenry / @n_mchenry

06/14/2015 at 05:18PM

26
#518 - Daniel / @Daniel00288663

04/27/2017 at 01:03PM

26
#519 - Phil Devitt / @GeneralHav0k

01/03/2019 at 01:38PM

26
#520 - StrangeNumbers / @NumbersStrange

03/28/2019 at 08:37AM

27
#521 - Jyun-Fan Tsai / @fakecolor

02/21/2012 at 12:52PM

27
#522 - Michał Taszycki / @mehowte

02/21/2012 at 03:15PM

27
#523 - Augustin Trancart / @autra42

02/28/2012 at 01:52PM

27
#524 - Aaron Lake / @aaronmlake

02/28/2012 at 06:43PM

27
#525 - Brandon Liu / @branliu

03/02/2012 at 02:11PM

27
#526 - Leon Miller-Out / @leonmo

03/06/2012 at 03:43PM

27
#527 - Michał Wróbel / @sparrovv_

03/13/2012 at 04:15PM

27
#528 - Matthieu Honel / @ocus

03/21/2012 at 11:22PM

27
#529 - cyberrodent_n / @cyberRodent_n

03/31/2012 at 05:03AM

27
#530 - (Erik Michaels-Ober) / @sferik

04/01/2012 at 03:11AM

27
#531 - 蒼時弦也 / @elct9620

04/01/2012 at 01:40PM

27
#532 - Cormac Relf / @cormacrelf

04/02/2012 at 10:49AM

27
#533 - Mahefa Randimbisoa / @DotMG

04/20/2012 at 04:03PM

27
#534 - seanwalberg / @seanwalberg

04/23/2012 at 03:18AM

27
#535 - Christian Knappskog / @chknapp

05/01/2012 at 07:23PM

27
#536 - Nathan Fisher / @natbobc

05/31/2012 at 05:57PM

27
#537 - Alykhan Kanji / @alykhank

08/17/2012 at 01:02PM

27
#538 - jakeroberts / @jakeroberts

09/07/2012 at 02:36PM

27
#539 - Jeremiah / @jeremiahishere

02/05/2013 at 06:15PM

27
#540 - Adrian Roston / @akroston

06/26/2013 at 05:59AM