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):
27
#541 - James / @Dronak

09/07/2013 at 04:31AM

27
#542 - Foo Bar / @FooWatson

12/11/2013 at 09:16PM

27
#543 - Quota / @Quotad

01/13/2014 at 09:45AM

27
#544 - Johan Berg / @_berg85

01/17/2014 at 03:25PM

27
#545 - Billy McCarthy / @reshippie

02/10/2014 at 09:42PM

27
#546 - Ben Lambeth / @azy2_ben

02/12/2014 at 10:49PM

27
#547 - Solar Powered Robot / @moskrin

04/30/2014 at 07:02PM

27
#548 - Will Munn / @lfsaw

07/03/2014 at 12:11AM

27
#549 - MrTchuss / @buffer_x90

08/08/2015 at 11:51AM

27
#550 - Jörg Meyer / @JoergMy

08/25/2015 at 09:32PM

28
#551 - Lonny Jepson / @StrayPanda42

03/02/2012 at 03:11PM

28
#552 - learninghang / @learninghang

04/13/2012 at 05:33PM

28
#553 - Dave@Highgroove / @HighgrooveDave

05/22/2012 at 07:50PM

28
#554 - Carlos Hernando / @chernando

06/13/2012 at 06:40PM

28
#555 - J. Nick Terry / @deft_code

08/28/2012 at 07:28AM

28
#556 - RobertT / @techrt2050

08/07/2013 at 02:05AM

28
#557 - Joe Kramer / @cozmorado

09/26/2013 at 06:18AM

28
#558 - nona urbiz / @nospampleasemam

09/29/2013 at 08:49AM

28
#559 - Zachery Chin / @momochi0

11/05/2013 at 04:49AM

28
#560 - Eric Potter / @pottereric

12/16/2013 at 06:04PM

28
#561 - Sebastián Lara M. / @slaramen

02/26/2014 at 10:05PM

28
#562 - André Branco / @avbranco

06/30/2014 at 05:41PM

28
#563 - Wade / @vvandy

12/17/2014 at 11:25PM

28
#564 - lpm11 / T. Tsunoda / @lpm11

02/16/2015 at 11:26AM

28
#565 - dave torbeck / @detour503

03/25/2015 at 10:56PM

28
#566 - Nicolas Nistal / @niconistal

11/19/2015 at 04:35AM

28
#567 - Geoff / @RealGeoffErwin

12/14/2017 at 08:51PM

28
#568 - Jonathan Camilleri / @Too_Many_Taken

05/26/2018 at 01:58PM

28
#569 - Jurica / @Jurica34581259

11/16/2018 at 12:32PM

28
#570 - nvb46c74f8ih / @nvb46c74f8ih

05/19/2019 at 08:40AM