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

945 active golfers, 2691 entries

Leaderboard (lowest score wins):
17
#631 - Monroe Walker / @monroewlkr

10/16/2013 at 05:42AM

17
#632 - foo / @foo88832727

10/18/2013 at 06:33PM

17
#633 - Chris Ford / @ctford

10/20/2013 at 12:52PM

17
#634 - Gemma Lynn / @ellotheth

10/22/2013 at 05:10AM

17
#635 - Billy Ripper / @dirtlamb5

10/23/2013 at 06:12AM

17
#636 - Bjorn / @bjorn_248

10/24/2013 at 08:57PM

17
#637 - John Boyd / @theboydvoid

10/25/2013 at 03:46AM

17
#638 - Jonas Granquist / @jonasgranquist

10/25/2013 at 06:00PM

17
#639 - n.st / @0013901644043f9

10/27/2013 at 05:22PM

17
#640 - Hamish Hutchings / @hamhut1066

10/29/2013 at 11:23AM

17
#641 - Fnord Everywhere / @FnordE

10/30/2013 at 11:52AM

17
#642 - David Tran / @everyzero

10/31/2013 at 03:39PM

17
#643 - c / @mmo_chess

11/03/2013 at 06:40AM

17
#644 - TJ Taylor / @dugancathal

11/05/2013 at 04:19AM

17
#645 - Erez Shinan / @erezsh

11/05/2013 at 02:30PM

17
#646 - Chris Lott / @passiontask

11/14/2013 at 06:04PM

17
#647 - Robin / @randuin

11/15/2013 at 06:47AM

17
#648 - Mathieu Larouche / @matdube

11/15/2013 at 01:21PM

17
#649 - Anton / @AntonKalyaev

11/15/2013 at 04:02PM

17
#650 - Денис Кириченко / @Deni10o

11/15/2013 at 04:03PM

17
#651 - Alexey Mikka / @ILoGM

11/15/2013 at 05:43PM

17
#652 - Rob Findley / @Rob_Findley

11/22/2013 at 03:20AM

17
#653 - Will Handley / @falsewhenquined

11/24/2013 at 11:41PM

17
#654 - Joe Chrzanowski / @joechrz

12/05/2013 at 12:28AM

17
#655 - - / @swi93

12/05/2013 at 07:55AM

17
#656 - Zifei Tong / @chevalun

12/06/2013 at 11:10AM

17
#657 - Rémi Labeyrie / @rlabeyrie

12/06/2013 at 03:34PM

17
#658 - Stefan Leszkiewicz / @stefanlz

12/08/2013 at 02:44AM

17
#659 - Bambu / @bambumandinga

12/14/2013 at 03:09AM

17
#660 - Karlito / @karlitochen

12/14/2013 at 06:23PM