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):
15
#391 - Skúli Jóhannsson / @skulibj

06/26/2015 at 01:13AM

15
#392 - Lindsay Swift / @_lindsai_

07/07/2015 at 09:04PM

15
#393 - Peter B / @l0wm4x

08/12/2015 at 07:24PM

15
#394 - LC / @leeren

08/23/2015 at 12:01AM

15
#395 - Mike Adams / @davis_cromwell

09/30/2015 at 08:23PM

15
#396 - Stefan Larsson / @Objektiv

11/25/2015 at 06:42PM

15
#397 - 朱国栋 / @GuodongZhu

01/10/2016 at 09:51PM

15
#398 - Jaron Hamlik / @jdhamlik

02/27/2016 at 11:03PM

15
#399 - Sébastien Vincent / @shinmei

03/29/2016 at 04:16AM

15
#400 - asdf / @AsdaasfAsdf

05/29/2016 at 06:32PM

15
#401 - Tom / @CronutFacts

05/31/2016 at 02:09AM

15
#402 - Yudi Matsuzake / @yudimatsuzake

06/07/2016 at 04:08PM

15
#403 - Ram Tamtam / @ramtamtamtam

06/22/2016 at 02:57PM

15
#404 - malet / @Malet

06/25/2016 at 10:37AM

15
#405 - Constantine / @ConstantineHatz

09/22/2016 at 09:59PM

15
#406 - Netrisk Cool / @C00lt0

10/03/2016 at 09:40AM

15
#407 - timerella® / @timerella

11/17/2016 at 10:14PM

15
#408 - afinageny / @afinageny

12/14/2016 at 08:22PM

15
#409 - Jon McClennon / @mcclennon19

12/20/2016 at 04:39PM

15
#410 - Marcel Akkerman / @MarcelAkkerman

12/22/2016 at 10:28AM

15
#411 - Ymte Jan Broekhuizen / @ymtejan

02/05/2017 at 05:12PM

15
#412 - Joaquin Coronel / @cantstoptheguac

02/09/2017 at 06:36PM

15
#413 - Миша Сорокин / @rafmikovi4

04/10/2017 at 11:51AM

15
#414 - 20speedvegan / @ashkevinm

04/12/2017 at 06:51PM

15
#415 - Ben Hill / @KaizenSoze70

06/30/2017 at 05:00PM

15
#416 - Luke Bryant / @LukeBryant55

10/02/2017 at 11:22AM

15
#417 - r8923vqnu89wcnar / @r8923vqnu89wcn1

11/22/2017 at 11:51AM

15
#418 - Lisa Ugray / @lisa_ugray

03/16/2018 at 04:40PM

15
#419 - frank p / @icedearth55

05/10/2018 at 03:34PM

15
#420 - Justin Hoyt / @JustinHoyt24

06/24/2018 at 02:00AM