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):
15
#481 - Justin Hoyt / @JustinHoyt24

06/24/2018 at 02:00AM

15
#482 - Hugo / @szeyattai

08/20/2018 at 07:50AM

15
#483 - Mihai / @mihaicristiant

12/04/2018 at 07:44AM

15
#484 - churaki / @churaki

01/29/2019 at 11:52AM

15
#485 - 默罕默德 / @Rt6RjEAJ987Woes

02/19/2019 at 09:42AM

15
#486 - Groovy / @groovy9

03/08/2019 at 04:16PM

15
#487 - wanghbxxxx / @wanghbxxxx

04/06/2019 at 09:30AM

15
#488 - Alexander Pivovarov / @pivizz

04/30/2019 at 05:47AM

15
#489 - Nick Yeow / @nickyeow

05/25/2019 at 05:31AM

15
#490 - Hugo Tai / @HugoTai100

06/11/2019 at 05:38AM

15
#491 - Chester Yap / @Chest_ErYap

07/14/2019 at 01:04PM

15
#492 - Isaak Meier / @IsaakMeier

08/15/2019 at 06:11PM

15
#493 - Baine Wedlock / @BaineWedlock

09/24/2019 at 11:52AM

15
#494 - Lory / @Lory46845742

11/08/2019 at 02:24PM

15
#495 - pysnow530 / @pysnow530

11/25/2019 at 03:07PM

15
#496 - fewfold / @fewfold

11/29/2019 at 05:46PM

15
#497 - Scott Smith / @Scottaino

01/03/2020 at 05:48PM

15
#498 - hokonch / @hokonch

01/04/2020 at 06:50PM

15
#499 - nicosierra / @nicosierra84

01/11/2020 at 03:21PM

15
#500 - meow / @xckodut

01/18/2020 at 12:43AM

15
#501 - Jason Neylon / @jasonneylon

02/11/2020 at 09:54PM

15
#502 - Fnord Everywhere / @FnordE

05/14/2020 at 07:28AM

15
#503 - Moatvald / @moatvald

05/14/2020 at 03:26PM

15
#504 - iBhagwan / @iiBhagwan

05/14/2020 at 10:14PM

15
#505 - mocihan / @mocihan

06/28/2020 at 03:44PM

15
#506 - Ebi / @ehan6

07/09/2020 at 07:44PM

15
#507 - mindgitrwx / @mindgitrwx

09/03/2020 at 12:55AM

15
#508 - lamtt77 / @lamtt77

10/12/2020 at 08:16AM

15
#509 - Jean George / @JeanGeo20504212

09/27/2021 at 08:43PM

15
#510 - キムラ・OPEL・ユウジ / @kimurayuuji79

11/04/2022 at 12:29AM