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

951 active golfers, 2726 entries

Leaderboard (lowest score wins):
16
#481 - ntalbs / @ntalbs

12/27/2013 at 03:53AM

16
#482 - Thijs Brobbel / @tiesmaster

01/08/2014 at 12:24PM

16
#483 - Stanislav Yaglo / @NSMutablePerson

01/26/2014 at 10:52PM

16
#484 - Will / @VVi11_I_AM

01/29/2014 at 10:51AM

16
#485 - Fake T. Account / @FakeTAccount1

01/29/2014 at 02:50PM

16
#486 - Jérémy Autran / @jjautran

01/29/2014 at 05:26PM

16
#487 - mattsalacain / @mattsalacain

01/30/2014 at 08:59PM

16
#488 - Nikolay Frantsev / @Shutnik

02/03/2014 at 10:45AM

16
#489 - Marcin Cabaj / @marcincabaj

02/04/2014 at 04:49PM

16
#490 - Yongho / @YONG_HO

02/05/2014 at 02:43AM

16
#491 - Kimel Doggy / @KimelDoggy

02/07/2014 at 03:07PM

16
#492 - João Paiva / @jgpaiva

02/10/2014 at 07:43PM

16
#493 - barnabaguy / @barnabaguy

02/18/2014 at 07:10PM

16
#494 - Jean-PhilippeBurelle / @jpburelle

03/01/2014 at 07:42PM

16
#495 - Daniel / @danielpie92

03/09/2014 at 08:55PM

16
#496 - sprmgik / @sprmgik

03/12/2014 at 09:06AM

16
#497 - james_bunch / @james_bunch

03/19/2014 at 06:51PM

16
#498 - Brony PlusOne / @BronyPlusOne

03/22/2014 at 10:28PM

16
#499 - Andrew Loucky / @merely_oolong

03/24/2014 at 09:10PM

16
#500 - Isaac / @elemental_1_1

03/25/2014 at 02:16AM

16
#501 - Daniel Pade / @d_fj_p

03/30/2014 at 12:06AM

16
#502 - Felipe Jaramillo F / @mrfelipe

04/02/2014 at 03:40AM

16
#503 - george.li / @goblin_george

04/19/2014 at 01:44PM

16
#504 - Richard Veneracion / @rveneracion

05/08/2014 at 03:29AM

16
#505 - Tom Cammann / @tea_sea

05/13/2014 at 12:07PM

16
#506 - Herr Oppermann / @HerrOppermann

06/16/2014 at 02:29PM

16
#507 - compiled wrong / @compiledwrong

06/17/2014 at 03:42AM

16
#508 - Pratyush Mishra / @I_am_Tomato

06/21/2014 at 11:33PM

16
#509 - glennphillips / @glennphillips

07/11/2014 at 06:11PM

16
#510 - 俊吉 / @datddffbyi

07/12/2014 at 03:14PM