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

942 active golfers, 2684 entries

Leaderboard (lowest score wins):
14
#121 - Michael Bitzi / @mibitzi

02/14/2014 at 09:11PM

14
#122 - Павел Шнель / @lic06397

02/15/2014 at 09:13AM

14
#123 - radu petrutiu / @radu_petrutiu

02/15/2014 at 01:14PM

14
#124 - Jean / @ygu0_0

02/16/2014 at 10:16AM

14
#125 - Geraint Hywel / @g_mawr

02/16/2014 at 11:07PM

14
#126 - Rajit Singh / @rajitbsingh

02/21/2014 at 04:12PM

14
#127 - Gennadiy Leyfer / @gleyfer

02/23/2014 at 11:18PM

14
#128 - Dheeraj Sayala / @dheerosaur

02/25/2014 at 01:21PM

14
#129 - Marchand Paul-Valère / @pvmarch

02/25/2014 at 04:34PM

14
#130 - Jack Jacquemmoz / @MozJack

02/27/2014 at 04:14PM

14
#131 - Mina Naguib / @minaguib

02/28/2014 at 03:17AM

14
#132 - Jeremy Gold / @JeremyGold3

02/28/2014 at 09:10AM

14
#133 - Huang Yu / @trave7er

03/05/2014 at 02:32AM

14
#134 - hk3380 / @hk3380

03/12/2014 at 01:55AM

14
#135 - Joonas Pihlajamaa / @jokkebk

03/17/2014 at 10:06AM

14
#136 - Matt Stinson / @MrMatt2532

03/20/2014 at 02:46AM

14
#137 - Jeff / @just_geophree

03/29/2014 at 06:45PM

14
#138 - Amit Verma / @amitv12

03/29/2014 at 09:29PM

14
#139 - Mike Michalik / @Sh4deFM

04/01/2014 at 03:51AM

14
#140 - Kris Hom / @krishom

04/04/2014 at 08:29PM

14
#141 - ZorgroZ / @ZorgroZ

04/12/2014 at 06:03PM

14
#142 - André Peric Tavares / @AndrePeric

04/20/2014 at 02:37AM

14
#143 - kiho choi / @ArtStandAlone

04/21/2014 at 09:55AM

14
#144 - 土ヤ / @ttsuchiya

04/25/2014 at 03:08PM

14
#145 - Peeby Thirtyone / @peeby31

05/04/2014 at 10:15AM

14
#146 - Nolen Royalty / @NolenRoyalty

05/08/2014 at 08:05AM

14
#147 - zmo / @guyzmo

05/08/2014 at 12:02PM

14
#148 - Henry Blevins / @HenryBlevins

05/18/2014 at 04:12PM

14
#149 - Alex / @ven_y_toma

05/18/2014 at 10:45PM

14
#150 - Federico Galassi / @federicogalassi

05/27/2014 at 02:50AM