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

978 active golfers, 2807 entries

Leaderboard (lowest score wins):
22
#931 - TimWolla / @TimWolla

03/13/2014 at 09:02PM

22
#932 - Dylan Farnsworth / @FarnsworthDylan

04/22/2014 at 12:06AM

22
#933 - Jeff Parent / @jeffparent

05/11/2014 at 03:13AM

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

08/03/2014 at 06:20AM

22
#935 - fa / @twiteciop

08/07/2014 at 09:27AM

22
#936 - Scott Traver / @ScottTraver

07/31/2015 at 07:04PM

22
#937 - Meriadec Pillet / @loomisBroom

09/27/2016 at 06:12PM

22
#938 - albalitz / @_albalitz

06/06/2019 at 12:59PM

23
#939 - Jonas Ren / @rz805

11/13/2013 at 06:43AM

23
#940 - Justin Johnson / @j26774

01/17/2014 at 04:33PM

23
#941 - skensell / @skensell

03/17/2014 at 05:55PM

23
#942 - fridjo / @frozenfrid

06/20/2017 at 09:17PM

24
#943 - jmlucjav / @jmlucjav

10/29/2013 at 10:26PM

24
#944 - LumberCoder / @LuRsT

01/28/2014 at 06:24PM

24
#945 - Naoki Masuko / @nmasuko

07/11/2014 at 10:30PM

24
#946 - egormeister / @egormeister1

10/24/2018 at 08:49PM

24
#947 - jonbwhite / @jonbwhite

11/29/2018 at 01:38AM

25
#948 - Joel Gallant / @joelg236

06/06/2015 at 10:04PM

25
#949 - alex / @alexAngle8

08/23/2015 at 03:33PM

25
#950 - Егор / @DG3GfGxuYOQZgxN

10/23/2018 at 01:58PM

26
#951 - hc / @handsomecheung

08/12/2013 at 03:20AM

26
#952 - Jurica / @Jurica34581259

11/16/2018 at 11:36AM

28
#953 - Brandon Cornejo / @binaryatrocity

09/26/2013 at 07:46PM

28
#954 - Paul Brandau / @paulbrandau

07/25/2018 at 02:37AM

29
#955 - Heron Medeiros / @heronmedeiros

04/18/2014 at 07:40PM

30
#956 - Fedor Stepanov / @yasorrat

09/27/2013 at 10:01PM

30
#957 - The Doctor What / @docwhat

02/21/2014 at 07:28AM

30
#958 - ಸುಬ್ರಹ್ಮಣ್ಯ ಜೋಶಿ / @subbucoding

03/29/2015 at 02:01AM

31
#959 - Global Maquereau / @GlobalMaquereau

07/28/2013 at 05:06AM

31
#960 - Leif Bladt / @leifbladt

08/27/2013 at 03:18PM