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

1079 active golfers, 3165 entries

Leaderboard (lowest score wins):
14
#31 - Arthur叔 / @Arthurljg

08/31/2013 at 06:51AM

14
#32 - Barry Nichols / @Barry_Nichols

08/31/2013 at 02:34PM

14
#33 - highlando / @jnhlnd

09/02/2013 at 11:30AM

14
#34 - Amar Battulga / @amar_battulga

09/06/2013 at 03:59AM

14
#35 - Kerson Hsiao / @KersonHsiao

09/07/2013 at 05:42AM

14
#36 - Matěj Nikl / @MatejNikl

09/09/2013 at 07:40PM

14
#37 - Sam Green / @magpi_

09/11/2013 at 11:02PM

14
#38 - Stephen Drodge / @sjdrodge

09/12/2013 at 01:18AM

14
#39 - Matt Green / @emgeeeeee

09/15/2013 at 03:24PM

14
#40 - Grandy Nguyen / @GrandyNguyen

09/22/2013 at 04:40PM

14
#41 - Dary Merckens / @merckens

09/23/2013 at 06:14AM

14
#42 - Rodrigo Limão / @rlimaoc

10/01/2013 at 10:19PM

14
#43 - Throw Away / @throwaway111111

10/01/2013 at 10:58PM

14
#44 - Devin Gray / @devinagray

10/03/2013 at 04:00AM

14
#45 - Grégoire Delattre / @gregdel

10/03/2013 at 09:05PM

14
#46 - Isaac Sloan / @elorest

10/06/2013 at 01:59AM

14
#47 - StarkHalo / @hellektor

10/06/2013 at 03:50PM

14
#48 - Marcin Szamotulski / @me_coot

10/08/2013 at 11:31PM

14
#49 - Sergio Benitez / @Sergio965

10/09/2013 at 10:18PM

14
#50 - Travis Millott / @ritherz

10/11/2013 at 05:18PM

14
#51 - Tyler / @tylerbindon

10/13/2013 at 05:38AM

14
#52 - Liam Wilkins / @CallMeWilkins

10/16/2013 at 07:03PM

14
#53 - nick / @nrehm

10/19/2013 at 12:36AM

14
#54 - Bradley M. Small / @BradleySmall

10/19/2013 at 06:49AM

14
#55 - Corey Glynn / @albedoa

10/19/2013 at 10:30AM

14
#56 - Casey Dwyer / @caseydwyer

10/20/2013 at 05:31PM

14
#57 - Psuedo Quasi / @PsuedoQuasi

10/22/2013 at 10:06PM

14
#58 - Duy Vinh CHUC / @vinh_chuc

10/23/2013 at 03:38PM

14
#59 - Roger Bongers / @RogerBongers

10/23/2013 at 07:19PM

14
#60 - Tzipan / @Tzipan

10/23/2013 at 09:44PM