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):
15
#391 - US Dollar Price / @USDollarPrice

11/04/2013 at 02:55AM

15
#392 - Vito / @GodFather

11/08/2013 at 06:23AM

15
#393 - Daniel Marjenburgh / @dmarjenburgh

11/25/2013 at 02:24PM

15
#394 - digitalronin / @digitalronin

12/08/2013 at 11:01AM

15
#395 - Joakim L. Engeset / @joakim_eng

12/13/2013 at 03:05PM

15
#396 - joe smoe / @joesmoevim

12/16/2013 at 09:34PM

15
#397 - jk / @kewnapse

12/20/2013 at 11:52PM

15
#398 - pikaren / @REALpikaren

12/21/2013 at 04:55AM

15
#399 - Bradford Powell / @dr_bpow

12/22/2013 at 03:39AM

15
#400 - Thiago Prado / @5k1pp3r

12/25/2013 at 05:04PM

15
#401 - Alex Rutkowski / @alexmarie84

12/25/2013 at 08:04PM

15
#402 - Salleyron Julien / @juguul

12/29/2013 at 05:40PM

15
#403 - Yann Moisan / @YannMoisan

01/01/2014 at 06:29PM

15
#404 - John / @BerlinSchneider

01/14/2014 at 08:20AM

15
#405 - Mark Janssen / @MPCtje

01/15/2014 at 03:02PM

15
#406 - Fake Name / @The_Real_User

01/21/2014 at 03:15AM

15
#407 - Arsenic Hall / @FoxLisk

01/28/2014 at 10:44PM

15
#408 - Luke Worth / @povman

01/31/2014 at 11:25PM

15
#409 - Ali El Amine / @Allouch95

02/02/2014 at 10:30AM

15
#410 - John Phelan / @jackphel

02/02/2014 at 06:25PM

15
#411 - Mike Marion / @mikejmarion

02/03/2014 at 07:03PM

15
#412 - Jonny - Male 2.0.37 / @Jonnytron

02/08/2014 at 06:23PM

15
#413 - Lucius L. Hilley III / @unkmar

02/27/2014 at 09:10AM

15
#414 - Hannes Remahl / @hannesr

02/27/2014 at 04:30PM

15
#415 - Pedro Santos / @pedrosans

02/28/2014 at 02:41PM

15
#416 - Raphael / @rnstlr

03/04/2014 at 10:09PM

15
#417 - Konrad / @zichul

03/07/2014 at 11:46PM

15
#418 - 영훈 / @odjfnrtm

03/10/2014 at 12:43PM

15
#419 - buz / @buzbone

03/11/2014 at 07:43PM

15
#420 - Paul Jay / @PaulJay91

03/14/2014 at 08:57AM