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):
17
#811 - Jonathan Elliott / @jon__elliott

11/04/2016 at 05:16PM

17
#812 - Etienne Florent / @EtienneFlorent

11/23/2016 at 05:21PM

17
#813 - holy_sin / @0zero0

12/16/2016 at 04:20AM

17
#814 - J. Cosa / @esoesotracosa

01/18/2017 at 10:37AM

17
#815 - Patrick Sanan / @patricksanan

02/10/2017 at 01:44PM

17
#816 - Yann / @yannstad

02/20/2017 at 09:45AM

17
#817 - sijinyuan / @sijinyuan

02/22/2017 at 02:15AM

17
#818 - Dan Prince / @danj_prince

02/25/2017 at 02:11AM

17
#819 - xwle / @xwle

03/13/2017 at 04:43AM

17
#820 - Alex Linden / @alexwlinden1

04/18/2017 at 04:16PM

17
#821 - Lukas Galke / @_lpag

06/25/2017 at 11:06PM

17
#822 - Gurukandhamoorthi / @Gurukandhamoor1

07/10/2017 at 01:18PM

17
#823 - Jacob Buete / @JBuete

07/31/2017 at 05:04AM

17
#824 - Jonas Sunde V / @sunde_v

08/04/2017 at 04:01PM

17
#825 - Bhatta Sushmith / @bsushmith

08/25/2017 at 09:17PM

17
#826 - Geoff / @RealGeoffErwin

10/09/2017 at 06:38PM

17
#827 - Denis Kaluznyy / @Spy_Denis

11/13/2017 at 12:27PM

17
#828 - John C Shea / @MHSSachems

02/04/2018 at 11:19AM

17
#829 - TG Weiterleiter / @0xcofebabe1

05/14/2018 at 09:27PM

17
#830 - Jonathan Camilleri / @Too_Many_Taken

05/26/2018 at 11:32AM

17
#831 - William Hamilton / @BobHamiltonijk

05/26/2018 at 09:36PM

17
#832 - niwatoco / @yoshitune9

07/19/2018 at 07:10PM

17
#833 - Praful / @praful_kapadia

08/15/2018 at 02:06PM

17
#834 - Frank Rifk / @r1fk

09/05/2018 at 09:50PM

17
#835 - Not real / @Notreal70353016

09/22/2018 at 11:14PM

17
#836 - Brent Woo / @BrentPWoo

10/05/2018 at 08:54PM

17
#837 - Vasil Mikhalenya / @bazillek

10/15/2018 at 07:42PM

17
#838 - Bruce Adams / @bruceadams1054

10/19/2018 at 09:52AM

17
#839 - Fabio Branquinho / @branquif

11/08/2018 at 10:26PM

17
#840 - Luis Rodriguez / @luisthecoder

11/14/2018 at 08:50PM