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
#751 - Jimmy McRascal / @JimmyMcRascal

07/10/2014 at 01:50AM

17
#752 - starrynte / @starrynte

07/11/2014 at 06:13PM

17
#753 - yamasita taisuke / @yaasita

07/12/2014 at 04:38AM

17
#754 - Haoxuan Yue / @yuehaoxuanar

07/17/2014 at 03:37AM

17
#755 - Remi Bernotavicius / @bobbobbio

07/18/2014 at 03:23AM

17
#756 - Patrick Pitoscia / @Patrick03960431

08/04/2014 at 03:24AM

17
#757 - Mohamed Bassem / @MohamedBassem

08/06/2014 at 10:22AM

17
#758 - Bednarik Boldizsar / @bboldi

08/06/2014 at 07:17PM

17
#759 - Daniel Low / @deniallow

08/07/2014 at 11:30PM

17
#760 - Vim Fandango / @VimFandango

08/12/2014 at 07:25PM

17
#761 - Tj / @yrddy

08/13/2014 at 06:24AM

17
#762 - Adv_Zxy / @adv_zxy

08/22/2014 at 09:52AM

17
#763 - Florent F. / @floff01

09/07/2014 at 06:31PM

17
#764 - Roy Vim / @RoyVim

09/24/2014 at 07:33PM

17
#765 - Malte R / @maltoe

11/07/2014 at 05:16PM

17
#766 - Jan Novak / @odpadnimail

11/19/2014 at 04:48AM

17
#767 - Glauco Pires / @grpires

11/25/2014 at 01:45AM

17
#768 - Rao Zvorovski / @RaoZvorovski

12/07/2014 at 12:23AM

17
#769 - luffy / @raxcoi

12/19/2014 at 12:17PM

17
#770 - Dane Summers / @dsummersl

12/19/2014 at 02:43PM

17
#771 - Araka Bar / @ArakaBar

12/22/2014 at 11:39AM

17
#772 - JW / @justuswilhelm

01/06/2015 at 09:26PM

17
#773 - Oliver Christ / @0liverChrist

01/11/2015 at 11:46PM

17
#774 - SilentFl / @Silent_Fl

01/27/2015 at 08:10AM

17
#775 - Dmitry Zudochkin / @zudochkin

02/18/2015 at 09:59AM

17
#776 - Dorian Scheidt / @DorianListens

02/25/2015 at 04:54AM

17
#777 - Elizabeth / @sprinkles418

02/27/2015 at 08:25AM

17
#778 - Amer / @amerlyq

03/02/2015 at 06:08PM

17
#779 - d1uckym d1uckym / @d1uckym

03/05/2015 at 06:11AM

17
#780 - Kamil Laskowski / @laskowskikamil

03/20/2015 at 07:31PM