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

964 active golfers, 2770 entries

Leaderboard (lowest score wins):
17
#781 - ɐʇnɥsɐpoʇ / @todashuta

03/27/2015 at 08:36AM

17
#782 - William Ott / @oddalot

04/08/2015 at 03:38AM

17
#783 - Andrew Larson / @applarson

04/15/2015 at 10:28PM

17
#784 - Jonas Ng / @jnshey

05/17/2015 at 08:08AM

17
#785 - Kevin Knox / @kevinrknox

06/01/2015 at 06:40PM

17
#786 - Hervé Rouault / @hrouault

06/12/2015 at 09:58PM

17
#787 - McKay Ward / @mckayward

07/28/2015 at 03:31AM

17
#788 - Blake Tereau / @BlakeTereau

08/17/2015 at 09:36PM

17
#789 - John Clara / @johnanthclara

08/21/2015 at 05:23AM

17
#790 - Jörg Meyer / @JoergMy

08/25/2015 at 09:27PM

17
#791 - Sergey Semushin / @Predelnik

08/26/2015 at 05:40AM

17
#792 - davegoncalves / @davegoncalves

10/10/2015 at 03:44AM

17
#793 - Stani Banani / @Stani_Banani

10/17/2015 at 10:23PM

17
#794 - Anshu Avinash / @anshu_avinash

10/18/2015 at 09:49AM

17
#795 - Bogumił Kamiński / @BogumilKaminski

10/25/2015 at 07:32PM

17
#796 - Holden Lewis / @lonnez90

12/08/2015 at 08:37PM

17
#797 - hammboning / @_PuttPirates_

01/20/2016 at 04:46PM

17
#798 - Etienne Tremel / @etiennetremel

02/07/2016 at 11:46AM

17
#799 - Frank Qi / @qdev76

03/09/2016 at 10:29PM

17
#800 - jb M / @Jiboo_hey

04/20/2016 at 07:30PM

17
#801 - Matteo Signer / @MatteoSigner

04/26/2016 at 09:18AM

17
#802 - Andres Araya / @arayaandresfco

05/17/2016 at 12:40PM

17
#803 - Edan Sneh / @edan_sneh

05/26/2016 at 11:30PM

17
#804 - Kenny Lau / @kkkennnny

06/02/2016 at 09:44AM

17
#805 - 白猫(zhu) / @cat2flower

06/06/2016 at 06:03AM

17
#806 - Dan Madden / @guthran

07/18/2016 at 02:27PM

17
#807 - 王运 / @640138017

07/20/2016 at 04:03PM

17
#808 - Ryan van Rensburg / @rdvr001

07/21/2016 at 10:22AM

17
#809 - André Peric Tavares / @andre_peric

07/22/2016 at 04:50PM

17
#810 - Kyouma / @kyoumaJohn

10/14/2016 at 03:25PM