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
#301 - Степанович Владислав / @Stepanovich98

10/23/2018 at 10:52PM

14
#302 - Brendan B Amdocs / @AmdocsB

11/02/2018 at 05:20PM

14
#303 - Dax / @zacoxi

11/09/2018 at 02:39AM

14
#304 - name / @name65894813

11/18/2018 at 08:46PM

14
#305 - Omar Zeidan / @OZeidan97

11/19/2018 at 08:50PM

14
#306 - Bennett / @bennettbackward

12/19/2018 at 12:50PM

14
#307 - Henrique Malheiro / @rike09

02/07/2019 at 09:43PM

14
#308 - Mateen Ulhaq / @sicariusnoctis

02/13/2019 at 06:21AM

14
#309 - Wei Wen / @goweiwen

02/14/2019 at 07:56PM

14
#310 - alekfed / @alek_fed

04/15/2019 at 11:09AM

14
#311 - Gitsnik / @dracyrys

04/26/2019 at 12:45PM

14
#312 - Grant / @grant_7788

04/30/2019 at 02:47PM

14
#313 - Arno / @arnoxmp

05/16/2019 at 09:00AM

14
#314 - Ben M / @Sweet_Scientist

06/07/2019 at 06:08AM

14
#315 - Sæther / @baltre1

06/07/2019 at 02:42PM

14
#316 - Graeme Smith / @InstaGraeme

06/07/2019 at 05:01PM

14
#317 - BunFluffman / @BFluffman

06/08/2019 at 12:48PM

14
#318 - majo senf / @majo_senf

06/17/2019 at 12:34PM

14
#319 - mkaminaga / @mkmng3

07/01/2019 at 06:16AM

14
#320 - Petru-Armand Bancila / @petruarmand

07/09/2019 at 08:14PM

14
#321 - Miłosz Łakomy / @foobar01123

07/19/2019 at 10:17AM

14
#322 - Matt Vaughn / @mattttvaughn

08/04/2019 at 11:27PM

14
#323 - sooqua / @sooqua

08/09/2019 at 03:39AM

14
#324 - theBecwar / @thebecwar

08/19/2019 at 05:21PM

14
#325 - Martin Delille / @martinodelilo

08/22/2019 at 11:44AM

14
#326 - Cassandra / @kascein

09/18/2019 at 10:21PM

14
#327 - vimgolfer / @vimgolfer7

10/09/2019 at 05:03AM

14
#328 - Viktor Styrud / @ViktorStyrud

10/09/2019 at 01:08PM

14
#329 - Mario Olofo / @mario_olofo

10/23/2019 at 03:00AM

14
#330 - oldandslow / @oldandslow5

11/27/2019 at 10:27AM