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):
21
#901 - Giorgos Giannoutsos / @nuc

08/21/2013 at 09:06PM

21
#902 - Piotr G. / @gbdlin

12/04/2013 at 03:18PM

21
#903 - Edgar Klerks / @eklerks

12/18/2013 at 04:53PM

21
#904 - Johan Berg / @_berg85

12/25/2013 at 03:26PM

21
#905 - Anton Shemerey / @shemerey

01/04/2014 at 06:35AM

21
#906 - Peter Piekarczyk / @ppskeet

01/30/2014 at 05:36AM

21
#907 - Ville Hakulinen / @hakulinenville

02/01/2014 at 04:27PM

21
#908 - CptBong / @cpt1bong

12/04/2018 at 01:23AM

21
#909 - Oren Koriat / @KoriatOren

12/20/2018 at 08:46PM

22
#910 - Jesse Fisher / @jessecfisher

08/23/2013 at 10:27PM

22
#911 - Hiroshi Funai / @hfunai

09/23/2013 at 02:09AM

22
#912 - J. Cliff Dyer / @jcdyer

11/25/2013 at 12:57PM

22
#913 - Tom Himanen / @TomHimanen

11/29/2013 at 12:40AM

22
#914 - JonnyRo / @JonnyRo

01/16/2014 at 07:17PM

22
#915 - teepark / @teepark

01/28/2014 at 06:00PM

22
#916 - Nate Fisher / @FallingNate

01/30/2014 at 05:10PM

22
#917 - John Hilts / @johnhilts

02/04/2014 at 07:13AM

22
#918 - TimWolla / @TimWolla

03/13/2014 at 09:02PM

22
#919 - Dylan Farnsworth / @FarnsworthDylan

04/22/2014 at 12:06AM

22
#920 - Jeff Parent / @jeffparent

05/11/2014 at 03:13AM

22
#921 - Slobodan Mišković / @slobomiskovic

08/03/2014 at 06:20AM

22
#922 - fa / @twiteciop

08/07/2014 at 09:27AM

22
#923 - Scott Traver / @ScottTraver

07/31/2015 at 07:04PM

22
#924 - Meriadec Pillet / @loomisBroom

09/27/2016 at 06:12PM

22
#925 - albalitz / @_albalitz

06/06/2019 at 12:59PM

23
#926 - Jonas Ren / @rz805

11/13/2013 at 06:43AM

23
#927 - Justin Johnson / @j26774

01/17/2014 at 04:33PM

23
#928 - skensell / @skensell

03/17/2014 at 05:55PM

23
#929 - fridjo / @frozenfrid

06/20/2017 at 09:17PM

24
#930 - jmlucjav / @jmlucjav

10/29/2013 at 10:26PM