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
#451 - kana / @kana1

08/27/2013 at 10:22AM

16
#452 - Bradd Szonye / @bszonye

08/27/2013 at 11:56PM

16
#453 - Eric Potter / @pottereric

08/29/2013 at 08:37PM

16
#454 - Fernando Axel Ellis / @Axel_Ellis

09/10/2013 at 08:44PM

16
#455 - Hawk Newton / @hawknewton

09/17/2013 at 02:10AM

16
#456 - Christopher Gioia / @gioia_gioi

09/17/2013 at 05:06AM

16
#457 - Steven Weller / @suweller

09/26/2013 at 03:17PM

16
#458 - Hieu M. Nguyen / @ngnmhieu

10/03/2013 at 04:12AM

16
#459 - newton / @newtonsmartt

10/15/2013 at 06:04PM

16
#460 - Jesse Nazario / @jessenzr

10/16/2013 at 07:17PM

16
#461 - Dimitar Dimitrov / @kurkale6ka

10/17/2013 at 01:30PM

16
#462 - Marc Langlois / @MarcLa22

10/23/2013 at 08:14PM

16
#463 - James O Smith / @josmith4242

10/25/2013 at 07:42PM

16
#464 - DESCHAMPS Henrick / @H3nr1ck_

10/26/2013 at 07:10PM

16
#465 - CarlMartin Rosenberg / @cmrosenberg

11/07/2013 at 05:07PM

16
#466 - gary.klindt@googlema / @garstekli

11/10/2013 at 02:38PM

16
#467 - Hoz / @hzopak

11/11/2013 at 08:14AM

16
#468 - Christian C. Salvadó / @cmsalvado

11/14/2013 at 07:13AM

16
#469 - Edgar Hipp / @EdgarHipp

11/14/2013 at 05:31PM

16
#470 - 8xx8 / @8xx8ru

11/15/2013 at 04:30PM

16
#471 - Matt Richards / @_tthew

11/17/2013 at 10:27PM

16
#472 - david ta / @tadavid

11/21/2013 at 08:25PM

16
#473 - JustGage / @JustGage

11/25/2013 at 04:09PM

16
#474 - Juho Jokelainen / @juhojokelainen

12/09/2013 at 09:20PM

16
#475 - ichnom / @ichnom

12/10/2013 at 08:03PM

16
#476 - Fetrarijaona Randria / @fetrarij

12/11/2013 at 05:13AM

16
#477 - Kevin Emmett / @kjemmett

12/21/2013 at 02:27PM

16
#478 - yachi / @yaachi

12/22/2013 at 01:32PM

16
#479 - winterlight / @winterlight4

12/22/2013 at 02:22PM

16
#480 - Saeed Nejati / @saeedn

12/26/2013 at 06:16AM