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

932 active golfers, 2654 entries

Leaderboard (lowest score wins):
14
#31 - Trevor Powell / @DoomedBunnies

08/27/2013 at 12:10PM

14
#32 - Arthur叔 / @Arthurljg

08/31/2013 at 06:51AM

14
#33 - Barry Nichols / @Barry_Nichols

08/31/2013 at 02:34PM

14
#34 - highlando / @jnhlnd

09/02/2013 at 11:30AM

14
#35 - Amar Battulga / @amar_battulga

09/06/2013 at 03:59AM

14
#36 - Kerson Hsiao / @KersonHsiao

09/07/2013 at 05:42AM

14
#37 - Matěj Nikl / @MatejNikl

09/09/2013 at 07:40PM

14
#38 - Sam Green / @magpi_

09/11/2013 at 11:02PM

14
#39 - Stephen Drodge / @sjdrodge

09/12/2013 at 01:18AM

14
#40 - Matt Green / @emgeeeeee

09/15/2013 at 03:24PM

14
#41 - Grandy Nguyen / @GrandyNguyen

09/22/2013 at 04:40PM

14
#42 - Dary Merckens / @merckens

09/23/2013 at 06:14AM

14
#43 - Rodrigo Limão / @rlimaoc

10/01/2013 at 10:19PM

14
#44 - Throw Away / @throwaway111111

10/01/2013 at 10:58PM

14
#45 - Devin Gray / @devinagray

10/03/2013 at 04:00AM

14
#46 - Grégoire Delattre / @gregdel

10/03/2013 at 09:05PM

14
#47 - Isaac Sloan / @elorest

10/06/2013 at 01:59AM

14
#48 - StarkHalo / @hellektor

10/06/2013 at 03:50PM

14
#49 - Marcin Sza / @coot_

10/08/2013 at 11:31PM

14
#50 - Sergio Benitez / @Sergio965

10/09/2013 at 10:18PM

14
#51 - Travis Millott / @ritherz

10/11/2013 at 05:18PM

14
#52 - Tyler / @tylerbindon

10/13/2013 at 05:38AM

14
#53 - Liam Wilkins / @CallMeWilkins

10/16/2013 at 07:03PM

14
#54 - nick / @nrehm

10/19/2013 at 12:36AM

14
#55 - Bradley M. Small / @BradleySmall

10/19/2013 at 06:49AM

14
#56 - Corey Glynn / @albedoa

10/19/2013 at 10:30AM

14
#57 - Casey Dwyer / @caseydwyer

10/20/2013 at 05:31PM

14
#58 - Psuedo Quasi / @PsuedoQuasi

10/22/2013 at 10:06PM

14
#59 - Duy Vinh CHUC / @french_vinh

10/23/2013 at 03:38PM

14
#60 - Roger Bongers / @RogerBongers

10/23/2013 at 07:19PM