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):
19
#151 - Mark Inksa / @MInksaCS

05/13/2014 at 09:10PM

19
#152 - kiho choi / @ArtStandAlone

05/25/2014 at 06:34AM

19
#153 - Edric Garran / @edric_garran

06/17/2014 at 09:15PM

19
#154 - kwa / @kwa129

07/12/2014 at 07:32AM

19
#155 - buz / @buzbone

07/18/2014 at 11:32AM

19
#156 - PLS / @jaegd

08/10/2014 at 12:28AM

19
#157 - LC / @leeren

08/10/2014 at 01:14AM

19
#158 - Eric Kever / @codeoverlode

09/30/2014 at 03:26AM

19
#159 - eBrnd / @eBrnd

11/02/2014 at 05:28PM

19
#160 - Jake Eskel / @JakeEskel

01/04/2015 at 03:32AM

19
#161 - kimber gonzalez / @kimberlycreates

01/13/2015 at 05:36PM

19
#162 - Håken Lid / @haakenlid

01/19/2015 at 12:32PM

19
#163 - mark0829 / @mark0829

01/31/2015 at 12:33PM

19
#164 - xieyh11 / @xieyh11

02/27/2015 at 02:59AM

19
#165 - pftb12345 / @pftb12345

04/02/2015 at 02:38AM

19
#166 - 親の金でシャンプーを買うな / @jajkeqos

04/08/2015 at 03:42PM

19
#167 - we’re going to need a bigger bot / @assaflavie

04/24/2015 at 08:17AM

19
#168 - Ferdev vimgolf / @fergvimgolf

08/13/2015 at 08:50PM

19
#169 - Walker Boh / @walker_boh

10/05/2015 at 02:34PM

19
#170 - merphant / @merphant

10/25/2015 at 06:44AM

19
#171 - Jon Krause / @jkrause314

12/30/2015 at 04:03AM

19
#172 - James Burns / @James_Ian_Burns

02/26/2016 at 02:34PM

19
#173 - John Smith / @literacyisgood

03/10/2016 at 01:00AM

19
#174 - Saki Gw / @Sakigw

04/09/2016 at 05:01PM

19
#175 - Ram Tamtam / @ramtamtamtam

06/27/2016 at 08:46AM

19
#176 - jdupont655 / @jdupont655

09/02/2016 at 04:53PM

19
#177 - Constantine / @ConstantineHatz

09/29/2016 at 09:17PM

19
#178 - timerella® / @timerella

11/17/2016 at 12:46AM

19
#179 - Pierre Maoui / @poupougnac

12/28/2016 at 11:21PM

19
#180 - Alex Linden / @alexwlinden1

04/20/2017 at 03:09PM