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
#721 - Victor Ramirez / @virako

03/04/2014 at 08:43AM

17
#722 - Nicholas Land / @LandsPlanet

03/06/2014 at 08:09PM

17
#723 - Brandon / @bjpowel2

03/06/2014 at 08:39PM

17
#724 - Bart / @oneofmanybarts

03/10/2014 at 03:39PM

17
#725 - Bo Zhi / @zhibo_ng

03/11/2014 at 08:04AM

17
#726 - Sean Huber / @bonquesha99

03/12/2014 at 04:56PM

17
#727 - Yiyang Chen / @yiyangc91

03/16/2014 at 12:55PM

17
#728 - Brian Olpin / @bolpin

03/22/2014 at 10:06PM

17
#729 - Jacob / @jayekub

03/23/2014 at 12:21AM

17
#730 - Chad / @chadskeeters

04/04/2014 at 01:32PM

17
#731 - senbong / @senbong87

04/05/2014 at 03:34AM

17
#732 - Peter Strawson / @PeterStrawson

04/09/2014 at 02:44AM

17
#733 - Nate R / @80vs90

04/09/2014 at 01:41PM

17
#734 - Endir / @Endir2

04/17/2014 at 03:22PM

17
#735 - freehaha / @freehaha

04/29/2014 at 09:15AM

17
#736 - Solar Powered Robot / @moskrin

05/01/2014 at 06:46PM

17
#737 - Anthony Robson / @anthonyrobson9

05/05/2014 at 01:20AM

17
#738 - stephencheng / @stephencheng

05/06/2014 at 08:43AM

17
#739 - Martin Delille / @martinodelilo

05/09/2014 at 09:49AM

17
#740 - w1zeman1p / @wizemanip

05/11/2014 at 04:04AM

17
#741 - Chris Davison / @davisonnn

05/25/2014 at 07:58PM

17
#742 - Atum Tal / @AtumTal

05/30/2014 at 01:49AM

17
#743 - Jake Eaton / @Jake__Eaton

06/01/2014 at 05:37AM

17
#744 - Pablo Acuña R. / @pabloacunar

06/22/2014 at 11:55PM

17
#745 - Tim Habermaas / @timhabermaas

06/24/2014 at 08:35PM

17
#746 - Brian / @wyantb_reader

06/26/2014 at 02:01AM

17
#747 - blamitter ✏️ / @blamitter

06/27/2014 at 10:08PM

17
#748 - David Hume / @djh95

07/07/2014 at 09:45AM

17
#749 - Michi Loro / @michiloro

07/08/2014 at 08:06AM

17
#750 - Laura Halla / @laura_halla

07/08/2014 at 08:22PM