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):
14
#271 - David Gustavsson / @mrGustaphe

06/10/2017 at 08:21PM

14
#272 - Joel Meyer-Hamme / @JoelMeyerHamme

06/21/2017 at 02:24PM

14
#273 - Bennett Bernardoni / @BBernardoni

06/28/2017 at 09:40PM

14
#274 - Stop and think / @ms_uncountable

07/08/2017 at 05:11AM

14
#275 - Terry Ding / @TerryDing77

08/24/2017 at 03:46PM

14
#276 - Solomon / @Trugbildjaeger

08/27/2017 at 01:35PM

14
#277 - 杨洋 / @176795444

08/29/2017 at 10:59AM

14
#278 - Graham Bates / @gigabates

09/24/2017 at 08:51PM

14
#279 - Ron Alexssen / @Ralexhere

10/30/2017 at 06:49AM

14
#280 - Turkey Man / @lvturkeyman

11/08/2017 at 06:07PM

14
#281 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 12:09PM

14
#282 - Luis Pigueiras / @LPigueiras

11/22/2017 at 11:54AM

14
#283 - Dominic Z / @thammaaa

01/24/2018 at 12:26PM

14
#284 - c0llision / @sh3llcode

01/27/2018 at 08:10PM

14
#285 - ParasamGateZero / @ParasamGateZero

01/31/2018 at 04:01AM

14
#286 - GreenPinguin / @GreenPinguin2

03/13/2018 at 02:12PM

14
#287 - Guirec CORBEL / @GuirecCorbel

04/05/2018 at 04:19AM

14
#288 - DHM / @DHM29978992

04/14/2018 at 04:45AM

14
#289 - radrhin / @radrhin

04/20/2018 at 08:20PM

14
#290 - Aunt Jovie / @auntjovie

05/14/2018 at 09:54PM

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

06/17/2018 at 10:22AM

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

06/20/2018 at 06:56AM

14
#293 - sspan / @sspantz

07/14/2018 at 03:48AM

14
#294 - Rajesh Sharma / @deepredsky

07/30/2018 at 07:20PM

14
#295 - fucus / @fishlovebanana

08/16/2018 at 10:14AM

14
#296 - royer / @RoyerMoyer1

09/11/2018 at 06:02AM

14
#297 - Rasmus Bergström / @JRasmusBm

09/29/2018 at 07:23AM

14
#298 - Artūras Zakrevskis / @AZakrevskis

10/04/2018 at 02:46PM

14
#299 - Joao Figueiredo / @j1fig

10/04/2018 at 02:55PM

14
#300 - Benjamin Kiesl / @BenjaminKiesl

10/20/2018 at 10:40AM