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

978 active golfers, 2807 entries

Leaderboard (lowest score wins):
17
#841 - niwatoco / @yoshitune9

07/19/2018 at 07:10PM

17
#842 - Praful / @praful_kapadia

08/15/2018 at 02:06PM

17
#843 - Frank Rifk / @r1fk

09/05/2018 at 09:50PM

17
#844 - Not real / @Notreal70353016

09/22/2018 at 11:14PM

17
#845 - Brent Woo / @BrentPWoo

10/05/2018 at 08:54PM

17
#846 - Vasil Mikhalenya / @bazillek

10/15/2018 at 07:42PM

17
#847 - Bruce Adams / @bruceadams1054

10/19/2018 at 09:52AM

17
#848 - Fabio Branquinho / @branquif

11/08/2018 at 10:26PM

17
#849 - Luis Rodriguez / @luisthecoder

11/14/2018 at 08:50PM

17
#850 - Homer Simp12586 / @simp12586

11/18/2018 at 06:05PM

17
#851 - timonegk / @timonegk

11/25/2018 at 08:23PM

17
#852 - Brian Donovan / @eventualbuddha

11/29/2018 at 02:19AM

17
#853 - Mac Goever / @MacGoever

02/05/2019 at 08:44PM

17
#854 - TimMcGuire / @mcguire

02/07/2019 at 09:40PM

17
#855 - zenwalker / @zenwalker93

03/11/2019 at 03:41PM

17
#856 - Phoon / @justflashhim

05/11/2019 at 02:46PM

17
#857 - pjoe / @pjoe

07/21/2019 at 04:12PM

17
#858 - Christopher Currens / @chriscurrens

07/22/2019 at 05:10PM

17
#859 - José / @AngelGaldamez

08/28/2019 at 03:41AM

18
#860 - Dan Harrington / @Dan1H1

07/31/2013 at 01:32AM

18
#861 - Christopher Green / @cg433n

08/11/2013 at 01:39AM

18
#862 - Seaborn Lee / @SeabornLi

08/13/2013 at 01:51PM

18
#863 - Maksim / @maksimrv

08/26/2013 at 07:58PM

18
#864 - Matty Williams / @matty_jwilliams

08/27/2013 at 09:54AM

18
#865 - Dave Aitken / @actionshrimp

08/27/2013 at 07:17PM

18
#866 - Hachez Floran / @FloranHachez

09/02/2013 at 03:59PM

18
#867 - Andrew Crites / @ExplosionPills

09/11/2013 at 06:38PM

18
#868 - Marcin Katulski / @marcink79

09/26/2013 at 08:28AM

18
#869 - Michael Biebl / @michaelbiebl

09/28/2013 at 03:42PM

18
#870 - Lavkesh / @OloglogN

01/29/2014 at 12:33PM