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 645 remaining solutions by signing in and submitting your own entry
#646 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

646 active golfers, 2397 entries

Leaderboard (lowest score wins):
17
#1 - Bart3k / @Bart3k3

09/12/2018 at 07:07AM

18
#2 - Federico Galassi / @federicogalassi

02/21/2012 at 01:12PM

18
#3 - Tim Chase / @gumnos

02/21/2012 at 01:19PM

18
#4 - Jiří Chára / @JiriChara

02/21/2012 at 07:23PM

18
#5 - Renat Aksitov / @Korvin79

02/21/2012 at 10:17PM

18
#6 - Tom Fetherston / @TomFetherston

02/22/2012 at 02:58AM

18
#7 - Oleg Roshupkin / @jjjahson

02/22/2012 at 03:54AM

18
#8 - Abdel Said / @abdelsaid

02/24/2012 at 02:58PM

18
#9 - oliver mueller / @marcontwit

02/25/2012 at 03:08PM

18
#10 - Sam Riesland / @str4mula

02/26/2012 at 11:01PM

18
#11 - Richard Michael / @richardkmichael

02/27/2012 at 02:54PM

18
#12 - Patrick Mosby / @halbtuerke

03/03/2012 at 12:31AM

18
#13 - Nick Larson / @NickCLarson

03/08/2012 at 06:33PM

18
#14 - Pawel Obrok / @mrYapee

03/12/2012 at 04:29PM

18
#15 - Hussein Morsy / @HusseinMorsy

03/18/2012 at 08:12PM

18
#16 - Christian Helbling / @friendly_coder

03/21/2012 at 11:34PM

18
#17 - Alberto Lopez / @albertolrubio

03/31/2012 at 03:39PM

18
#18 - Anders Janmyr / @andersjanmyr

04/01/2012 at 09:11AM

18
#19 - Sebastian Kusnier / @skusnier

04/13/2012 at 06:26PM

18
#20 - Rubén Laguna / @ecerulm

04/16/2012 at 10:46AM

18
#21 - Rod Knowlton / @codelahoma

04/24/2012 at 12:45AM

18
#22 - Neil / @spameldoon

04/28/2012 at 10:34AM

18
#23 - Rolf Bjaanes / @rolfb

05/01/2012 at 01:11PM

18
#24 - Mattiassich Ákos / @mattiassicha

05/02/2012 at 06:20PM

18
#25 - kurban / @kurban_mall

05/06/2012 at 08:03AM

18
#26 - Brian Stolz / @tecnobrat

05/07/2012 at 10:31PM

18
#27 - CoolWebTeacher / @coolwebteacher

05/10/2012 at 02:35AM

18
#28 - Mathieu Fortier / @mathieufortier

05/13/2012 at 03:42AM

18
#29 - Sergey / @sav86

05/13/2012 at 09:59PM

18
#30 - Mooddha / @mooddha

05/14/2012 at 04:51AM