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

965 active golfers, 2773 entries

Leaderboard (lowest score wins):
15
#361 - Luke Worth / @povman

01/31/2014 at 11:25PM

15
#362 - Ali El Amine / @Allouch95

02/02/2014 at 10:30AM

15
#363 - John Phelan / @jackphel

02/02/2014 at 06:25PM

15
#364 - Mike Marion / @mikejmarion

02/03/2014 at 07:03PM

15
#365 - Jonny / @Jonnytron

02/08/2014 at 06:23PM

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

02/27/2014 at 09:10AM

15
#367 - Hannes Remahl / @hannesr

02/27/2014 at 04:30PM

15
#368 - Pedro Santos / @pedrosans

02/28/2014 at 02:41PM

15
#369 - Raphael / @rnstlr

03/04/2014 at 10:09PM

15
#370 - Konrad / @zichul

03/07/2014 at 11:46PM

15
#371 - 영훈 / @odjfnrtm

03/10/2014 at 12:43PM

15
#372 - buz / @buzbone

03/11/2014 at 07:43PM

15
#373 - Paul Jay / @PaulJay91

03/14/2014 at 08:57AM

15
#374 - RB / @powerage88

03/23/2014 at 07:12PM

15
#375 - Aidan Brumsickle / @aidanbrumsickle

03/26/2014 at 04:50PM

15
#376 - zhuochun / @zhuochun

04/14/2014 at 07:09AM

15
#377 - Diego Lendoiro / @sinvitaminas

04/22/2014 at 04:31PM

15
#378 - lastsseldon / @lastsseldon

05/09/2014 at 09:35PM

15
#379 - Shefaet / @shefaet

05/13/2014 at 11:39PM

15
#380 - CDRdude / @CDRdude

05/22/2014 at 08:17AM

15
#381 - nikola chochkov / @gooodini

06/13/2014 at 07:49PM

15
#382 - Rayce / @raycewest

07/02/2014 at 10:16PM

15
#383 - kwa / @kwa129

07/05/2014 at 09:42AM

15
#384 - RiccardoSven Risuleo / @riccardosven

07/16/2014 at 08:55PM

15
#385 - Pepe / @GomTvIneluki

08/14/2014 at 11:32PM

15
#386 - April Gentle / @chen327684096

08/24/2014 at 10:14AM

15
#387 - JForstreuter / @JForstr

10/07/2014 at 09:11AM

15
#388 - Jakob / @jajob

10/12/2014 at 08:00AM

15
#389 - PHCerdan / @PHCerdan

11/04/2014 at 08:50AM

15
#390 - Alex Hioreanu / @hioreanu

11/10/2014 at 03:46AM