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

932 active golfers, 2654 entries

Leaderboard (lowest score wins):
14
#271 - Carl Egbert / @CarlOEgbert

06/09/2017 at 10:20PM

14
#272 - David Gustavsson / @mrGustaphe

06/10/2017 at 08:21PM

14
#273 - Joel Meyer-Hamme / @JoelMeyerHamme

06/21/2017 at 02:24PM

14
#274 - Bennett Bernardoni / @BBernardoni

06/28/2017 at 09:40PM

14
#275 - Stop and think / @ms_uncountable

07/08/2017 at 05:11AM

14
#276 - Terry Ding / @TerryDing77

08/24/2017 at 03:46PM

14
#277 - Solomon / @Trugbildjaeger

08/27/2017 at 01:35PM

14
#278 - 杨洋 / @176795444

08/29/2017 at 10:59AM

14
#279 - Graham Bates / @gigabates

09/24/2017 at 08:51PM

14
#280 - Ron Alexssen / @Ralexhere

10/30/2017 at 06:49AM

14
#281 - Turkey Man / @lvturkeyman

11/08/2017 at 06:07PM

14
#282 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 12:09PM

14
#283 - Luis Pigueiras / @LPigueiras

11/22/2017 at 11:54AM

14
#284 - Dominic Z / @thammaaa

01/24/2018 at 12:26PM

14
#285 - c0llision / @sh3llcode

01/27/2018 at 08:10PM

14
#286 - ParasamGateZero / @ParasamGateZero

01/31/2018 at 04:01AM

14
#287 - GreenPinguin / @GreenPinguin2

03/13/2018 at 02:12PM

14
#288 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 04:19AM

14
#289 - DHM / @DHM29978992

04/14/2018 at 04:45AM

14
#290 - radrhin / @radrhin

04/20/2018 at 08:20PM

14
#291 - Aunt Jovie / @auntjovie

05/14/2018 at 09:54PM

14
#292 - Daniël De Koker / @daniel_koker

06/17/2018 at 10:22AM

14
#293 - 赤佐田奈葉 / @akasatanaha_

06/20/2018 at 06:56AM

14
#294 - sspan / @sspantz

07/14/2018 at 03:48AM

14
#295 - Rajesh Sharma / @deepredsky

07/30/2018 at 07:20PM

14
#296 - fucus / @fishlovebanana

08/16/2018 at 10:14AM

14
#297 - royer / @RoyerMoyer1

09/11/2018 at 06:02AM

14
#298 - Rasmus Bergström / @JRasmusBm

09/29/2018 at 07:23AM

14
#299 - Artūras Zakrevskis / @AZakrevskis

10/04/2018 at 02:46PM

14
#300 - Joao Figueiredo / @j1fig

10/04/2018 at 02:55PM