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

962 active golfers, 2758 entries

Leaderboard (lowest score wins):
17
#661 - Robin / @randuin

11/15/2013 at 06:47AM

17
#662 - Mathieu Larouche / @matdube

11/15/2013 at 01:21PM

17
#663 - Anton / @AntonKalyaev

11/15/2013 at 04:02PM

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

11/15/2013 at 04:03PM

17
#665 - Alexey Mikka / @ILoGM

11/15/2013 at 05:43PM

17
#666 - Rob Findley / @Rob_Findley

11/22/2013 at 03:20AM

17
#667 - Will Handley / @falsewhenquined

11/24/2013 at 11:41PM

17
#668 - Joe Chrzanowski / @joechrz

12/05/2013 at 12:28AM

17
#669 - - / @swi93

12/05/2013 at 07:55AM

17
#670 - Zifei Tong / @chevalun

12/06/2013 at 11:10AM

17
#671 - Rémi Labeyrie / @rlabeyrie

12/06/2013 at 03:34PM

17
#672 - Stefan Leszkiewicz / @stefanlz

12/08/2013 at 02:44AM

17
#673 - Bambu / @bambumandinga

12/14/2013 at 03:09AM

17
#674 - Karlito / @karlitochen

12/14/2013 at 06:23PM

17
#675 - D / @justcallmedrago

12/15/2013 at 12:48AM

17
#676 - Anatoliy C. / @1602

12/16/2013 at 03:08PM

17
#677 - Anhad Jai Singh / @Ayos

12/16/2013 at 10:17PM

17
#678 - Petr Broz / @ipetrbroz

12/17/2013 at 07:10PM

17
#679 - adamblank / @adamblank

12/21/2013 at 02:06AM

17
#680 - Paul Chandler / @chandlpa

12/21/2013 at 06:31AM

17
#681 - Sam Burk / @smwbk

12/21/2013 at 10:31PM

17
#682 - Zach Kemp / @zvksf

12/23/2013 at 04:25PM

17
#683 - Russ Adams / @rustushki

12/23/2013 at 06:26PM

17
#684 - ウチコ / @memememomo

12/24/2013 at 03:42AM

17
#685 - Tan Le ☺ / @tancnle

01/02/2014 at 03:58AM

17
#686 - a / @asdfsdafdsfdsaf

01/04/2014 at 01:29AM

17
#687 - Alexander Borysov / @ab99c5e2

01/07/2014 at 02:12PM

17
#688 - Tudor Barbu / @motanelu

01/12/2014 at 11:09AM

17
#689 - curist / @curist

01/16/2014 at 02:58AM

17
#690 - Andreas Källberg / @Anka213

01/16/2014 at 08:49PM