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
#331 - Delon / @delonleonard

12/31/2019 at 12:00PM

14
#332 - 임덕윤 / @SnLHUF5ZYJXqI1m

01/03/2020 at 03:21AM

14
#333 - JimmyGymglish / @JGymglish

01/15/2020 at 08:16AM

14
#334 - countime / @countime1

03/12/2020 at 10:49AM

14
#335 - floyd / @floyd10086

03/20/2020 at 09:57AM

14
#336 - Niklas Ydebäck / @Ydebaeck

03/22/2020 at 11:18PM

14
#337 - Ryan Nevius / @ryannevius

03/25/2020 at 06:24AM

14
#338 - cyndiii-development / @cyndiiidevelop1

05/06/2020 at 06:18AM

14
#339 - Jason / @roosjason

05/08/2020 at 06:33AM

14
#340 - 于吉星 / @fishermryn

05/28/2020 at 09:20AM

14
#341 - Jan Sturm / @JanSturm77

07/15/2020 at 05:37PM

14
#342 - hepebexè / @hepebexe

12/12/2020 at 10:26PM

14
#343 - roudens / @roudens2

12/31/2020 at 08:00AM

14
#344 - Jung Yeon Park / @park_jungy

01/08/2021 at 07:18PM

14
#345 - A A A / @37fatos

01/16/2021 at 12:55AM

14
#346 - Michel Viktor / @tomkpz

08/10/2021 at 12:54AM

14
#347 - Max / @Max17868626

11/16/2021 at 03:50AM

14
#348 - Flimsy Giraffe / @flimsy_giraffe

11/28/2021 at 12:39PM

14
#349 - russellzhaomao / @russellzhaomao

05/26/2022 at 07:21AM

14
#350 - Alex / @AlexanderHeatl2

07/08/2022 at 09:45PM

14
#351 - z00master / @z00master

08/29/2022 at 03:28PM

14
#352 - Brandon / @Brandon10678836

08/31/2022 at 11:33AM

14
#353 - Priyanka Vissamsetty Rao / @priyankavrao97

09/25/2022 at 09:10PM

14
#354 - Janzen / @__Coos

09/26/2022 at 12:10PM

14
#355 - Andrii Soldatenko / @a_soldatenko

10/10/2022 at 07:24PM

14
#356 - dadams2 / @dadams217

11/25/2022 at 07:30AM

14
#357 - vuems / @vuems2win

11/30/2022 at 11:46PM

14
#358 - James Reading / @bowly_jim

04/20/2023 at 07:59AM

14
#359 - parazidi / @parazidi

04/24/2023 at 06:38PM

14
#360 - 7733865@qq.com / @tjxwg

06/06/2023 at 11:34PM