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 976 remaining solutions by signing in and submitting your own entry
#977 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

977 active golfers, 2804 entries

Leaderboard (lowest score wins):
15
#391 - JForstreuter / @JForstr

10/07/2014 at 09:11AM

15
#392 - Jakob / @jajob

10/12/2014 at 08:00AM

15
#393 - PHCerdan / @PHCerdan

11/04/2014 at 08:50AM

15
#394 - Alex Hioreanu / @hioreanu

11/10/2014 at 03:46AM

15
#395 - BurntBrainSoup / @BurntBrainSoup

11/11/2014 at 11:12PM

15
#396 - Mattiassich Ákos / @mattiassicha

12/01/2014 at 04:54PM

15
#397 - Alex Birdsall / @OilCanSamson

12/20/2014 at 07:16AM

15
#398 - Andrew Leung / @aleungpivotal

12/22/2014 at 08:31PM

15
#399 - Abdo Achkar / @Achkar

12/22/2014 at 10:23PM

15
#400 - Ben Bonfil / @benbonfil

12/24/2014 at 06:39PM

15
#401 - Matt / @mcr05

01/13/2015 at 07:52PM

15
#402 - Jake Eskel / @JakeEskel

01/27/2015 at 04:04PM

15
#403 - Jordana Lachow / @TomofBedlam

01/27/2015 at 11:23PM

15
#404 - no name / @vimgol

01/28/2015 at 06:51PM

15
#405 - mark0829 / @mark0829

01/29/2015 at 11:49AM

15
#406 - Niels Madan / @nielsmadan

04/16/2015 at 01:00PM

15
#407 - Charles Joachim / @cacplate

04/18/2015 at 09:55PM

15
#408 - Robert Robertson / @RobertC3228687

06/04/2015 at 01:39PM

15
#409 - Skúli Jóhannsson / @skulibj

06/26/2015 at 01:13AM

15
#410 - Lindsay Swift / @_lindsai_

07/07/2015 at 09:04PM

15
#411 - Peter B / @l0wm4x

08/12/2015 at 07:24PM

15
#412 - LC / @leeren

08/23/2015 at 12:01AM

15
#413 - Mike Adams / @davis_cromwell

09/30/2015 at 08:23PM

15
#414 - Stefan Larsson / @Objektiv

11/25/2015 at 06:42PM

15
#415 - 朱国栋 / @GuodongZhu

01/10/2016 at 09:51PM

15
#416 - Jaron Hamlik / @jdhamlik

02/27/2016 at 11:03PM

15
#417 - Sébastien Vincent / @shinmei

03/29/2016 at 04:16AM

15
#418 - asdf / @AsdaasfAsdf

05/29/2016 at 06:32PM

15
#419 - Tom / @CronutFacts

05/31/2016 at 02:09AM

15
#420 - Yudi Matsuzake / @yudimatsuzake

06/07/2016 at 04:08PM