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

951 active golfers, 2726 entries

Leaderboard (lowest score wins):
17
#721 - Peter Strawson / @PeterStrawson

04/09/2014 at 02:44AM

17
#722 - Nate R / @80vs90

04/09/2014 at 01:41PM

17
#723 - Endir / @Endir2

04/17/2014 at 03:22PM

17
#724 - freehaha / @freehaha

04/29/2014 at 09:15AM

17
#725 - Solar Powered Robot / @moskrin

05/01/2014 at 06:46PM

17
#726 - Anthony Robson / @anthonyrobson9

05/05/2014 at 01:20AM

17
#727 - stephencheng / @stephencheng

05/06/2014 at 08:43AM

17
#728 - Martin Delille / @martinodelilo

05/09/2014 at 09:49AM

17
#729 - w1zeman1p / @wizemanip

05/11/2014 at 04:04AM

17
#730 - Chris Davison / @davisonnn

05/25/2014 at 07:58PM

17
#731 - Atum Tal / @AtumTal

05/30/2014 at 01:49AM

17
#732 - Jake Eaton / @Jake__Eaton

06/01/2014 at 05:37AM

17
#733 - Pablo Acuña R. / @pabloacunar

06/22/2014 at 11:55PM

17
#734 - Tim Habermaas / @timhabermaas

06/24/2014 at 08:35PM

17
#735 - Brian / @wyantb_reader

06/26/2014 at 02:01AM

17
#736 - blamitter ✏️ / @blamitter

06/27/2014 at 10:08PM

17
#737 - David Hume / @djh95

07/07/2014 at 09:45AM

17
#738 - Michi Loro / @michiloro

07/08/2014 at 08:06AM

17
#739 - Laura Halla / @laura_halla

07/08/2014 at 08:22PM

17
#740 - Jimmy McRascal / @JimmyMcRascal

07/10/2014 at 01:50AM

17
#741 - starrynte / @starrynte

07/11/2014 at 06:13PM

17
#742 - yamasita taisuke / @yaasita

07/12/2014 at 04:38AM

17
#743 - Haoxuan Yue / @yuehaoxuanar

07/17/2014 at 03:37AM

17
#744 - Remi Bernotavicius / @bobbobbio

07/18/2014 at 03:23AM

17
#745 - Patrick Pitoscia / @Patrick03960431

08/04/2014 at 03:24AM

17
#746 - Mohamed Bassem / @MohamedBassem

08/06/2014 at 10:22AM

17
#747 - Bednarik Boldizsar / @bboldi

08/06/2014 at 07:17PM

17
#748 - Daniel Low / @deniallow

08/07/2014 at 11:30PM

17
#749 - Vim Fandango / @VimFandango

08/12/2014 at 07:25PM

17
#750 - Tj / @yrddy

08/13/2014 at 06:24AM