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 51f4a64c6813e30002000018

quotes inside quotes

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

Start file
This string contains a 'quoted' word.
This string contains 'two' quoted 'words.'
This 'string doesn't make things easy.'
End file
This string contains a "quoted" word.
This string contains "two" quoted "words."
This "string doesn't make things easy."

View Diff

1,3c1,3
< This string contains a 'quoted' word.
< This string contains 'two' quoted 'words.'
< This 'string doesn't make things easy.'
---
> This string contains a "quoted" word.
> This string contains "two" quoted "words."
> This "string doesn't make things easy."

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 963 remaining solutions by signing in and submitting your own entry
#964 mko_io / @mko_io - Score: 189 - 06/14/14 @ 16:10
f'cs'"f'<Right>cs'"f'S"jjujj<Esc><Esc>ulf'c"s"<C-O>'f'l<BS><BS><Right><Right><Right><Right><Right><Right>x<Right><BS><BS>"<Esc><Esc>jhhhhhhhhhS"uj<Esc><Esc>uf'Sujj<Esc><Esc>ulllllllllllllllllllllC<Esc>us"<Esc><Right><Right><Right><Right>s"<Right><Right><Right><Right><Right><Right><Right><Right>s"<BS><BS><Right><Left>s"<BS><BS><Esc><Esc><Right>s"<Right><Right><Right><Right><Right><Right><Right><BS>s<BS>S<BS>"<Down><BS>"<Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS>"<Esc><Esc>ZZ

0 comments


Created by: @GlobalMaquereau

964 active golfers, 2770 entries

Leaderboard (lowest score wins):
15
#421 - afinageny / @afinageny

12/14/2016 at 08:22PM

15
#422 - Jon McClennon / @mcclennon19

12/20/2016 at 04:39PM

15
#423 - Marcel Akkerman / @MarcelAkkerman

12/22/2016 at 10:28AM

15
#424 - Ymte Jan Broekhuizen / @ymtejan

02/05/2017 at 05:12PM

15
#425 - Joaquin Coronel / @cantstoptheguac

02/09/2017 at 06:36PM

15
#426 - Миша Сорокин / @rafmikovi4

04/10/2017 at 11:51AM

15
#427 - 20speedvegan / @ashkevinm

04/12/2017 at 06:51PM

15
#428 - Ben Hill / @KaizenSoze70

06/30/2017 at 05:00PM

15
#429 - Luke Bryant / @LukeBryant55

10/02/2017 at 11:22AM

15
#430 - r8923vqnu89wcnar / @r8923vqnu89wcn1

11/22/2017 at 11:51AM

15
#431 - Lisa Ugray / @lisa_ugray

03/16/2018 at 04:40PM

15
#432 - frank p / @icedearth55

05/10/2018 at 03:34PM

15
#433 - Justin Hoyt / @JustinHoyt24

06/24/2018 at 02:00AM

15
#434 - Hugo / @szeyattai

08/20/2018 at 07:50AM

15
#435 - Mihai / @mihaicristiant

12/04/2018 at 07:44AM

15
#436 - churaki / @churaki

01/29/2019 at 11:52AM

15
#437 - 默罕默德 / @Rt6RjEAJ987Woes

02/19/2019 at 09:42AM

15
#438 - Groovy / @groovy9

03/08/2019 at 04:16PM

15
#439 - wanghbxxxx / @wanghbxxxx

04/06/2019 at 09:30AM

15
#440 - Alexander Pivovarov / @pivizz

04/30/2019 at 05:47AM

15
#441 - Nick Yeow / @nickyeow

05/25/2019 at 05:31AM

15
#442 - Hugo Tai / @HugoTai100

06/11/2019 at 05:38AM

15
#443 - Chester Yap / @Chest_ErYap

07/14/2019 at 01:04PM

16
#444 - Kai Yuan / @kentyuan

07/28/2013 at 08:49AM

16
#445 - Ingo / @ist3fani

07/28/2013 at 09:54AM

16
#446 - Maksim S. / @waynesayonara

07/28/2013 at 03:48PM

16
#447 - ———đίxίє—flαтlίиє——— / @_dixie_flatline

07/29/2013 at 12:15AM

16
#448 - Steve Tjoa / @stevetjoa

07/29/2013 at 01:42AM

16
#449 - Ben Zittlau / @benzittlau

07/29/2013 at 10:37PM

16
#450 - A / @Tower_1980

07/30/2013 at 02:08PM