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

1079 active golfers, 3165 entries

Leaderboard (lowest score wins):
17
#751 - Will Handley / @falsewhenquined

11/24/2013 at 11:41PM

17
#752 - Joe Chrzanowski / @joechrz

12/05/2013 at 12:28AM

17
#753 - - / @swi93

12/05/2013 at 07:55AM

17
#754 - Zifei Tong / @chevalun

12/06/2013 at 11:10AM

17
#755 - Rémi Labeyrie / @rlabeyrie

12/06/2013 at 03:34PM

17
#756 - Stefan Leszkiewicz / @stefanlz

12/08/2013 at 02:44AM

17
#757 - Bambu / @bambumandinga

12/14/2013 at 03:09AM

17
#758 - Karlito / @karlitochen

12/14/2013 at 06:23PM

17
#759 - D / @justcallmedrago

12/15/2013 at 12:48AM

17
#760 - Anatoliy C. / @1602

12/16/2013 at 03:08PM

17
#761 - Anhad Jai Singh / @Ayos

12/16/2013 at 10:17PM

17
#762 - Petr Broz / @ipetrbroz

12/17/2013 at 07:10PM

17
#763 - adamblank / @adamblank

12/21/2013 at 02:06AM

17
#764 - Paul Chandler / @chandlpa

12/21/2013 at 06:31AM

17
#765 - Sam Burk / @smwbk

12/21/2013 at 10:31PM

17
#766 - Zach Kemp / @zvksf

12/23/2013 at 04:25PM

17
#767 - Russ Adams / @rustushki

12/23/2013 at 06:26PM

17
#768 - ウチコ / @memememomo

12/24/2013 at 03:42AM

17
#769 - Tan Le ☺ / @tancnle

01/02/2014 at 03:58AM

17
#770 - a / @asdfsdafdsfdsaf

01/04/2014 at 01:29AM

17
#771 - Alexander Borysov / @ab99c5e2

01/07/2014 at 02:12PM

17
#772 - Tudor Barbu / @motanelu

01/12/2014 at 11:09AM

17
#773 - curist / @curist

01/16/2014 at 02:58AM

17
#774 - Andreas Källberg / @Anka213

01/16/2014 at 08:49PM

17
#775 - Benjamin Glassman / @squizztoupe

01/19/2014 at 10:23PM

17
#776 - changling / @Lspacewalker

01/24/2014 at 03:08PM

17
#777 - Mark Wart / @2mando

01/28/2014 at 11:04AM

17
#778 - Almog / @almog

01/28/2014 at 01:15PM

17
#779 - Amir Kremer / @AmirKremer

01/28/2014 at 01:16PM

17
#780 - Chase Lambert / @chasediscs

01/29/2014 at 12:13AM