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

988 active golfers, 2834 entries

Leaderboard (lowest score wins):
26
#961 - hc / @handsomecheung

08/12/2013 at 03:20AM

26
#962 - Jurica / @Jurica34581259

11/16/2018 at 11:36AM

28
#963 - Brandon Cornejo / @binaryatrocity

09/26/2013 at 07:46PM

28
#964 - Paul Brandau / @paulbrandau

07/25/2018 at 02:37AM

29
#965 - Heron Medeiros / @heronmedeiros

04/18/2014 at 07:40PM

30
#966 - Fedor Stepanov / @yasorrat

09/27/2013 at 10:01PM

30
#967 - The Doctor What / @docwhat

02/21/2014 at 07:28AM

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

03/29/2015 at 02:01AM

31
#969 - Global Maquereau / @GlobalMaquereau

07/28/2013 at 05:06AM

31
#970 - Leif Bladt / @leifbladt

08/27/2013 at 03:18PM

31
#971 - markup / @markup123

02/05/2014 at 04:17AM

31
#972 - Victor Bjelkholm / @VictorBjelkholm

06/06/2014 at 08:30PM

33
#973 - Sami Niiranen / @saminiir

10/13/2013 at 08:56AM

33
#974 - Arjan Molenaar / @ajmolenaar

01/29/2014 at 12:52PM

33
#975 - Samir Sadek / @netsamir

07/21/2015 at 06:14AM

33
#976 - Vim Golfer / @VimGolfer6

07/22/2019 at 11:03AM

34
#977 - jmpak / @jmpak

08/07/2013 at 02:45PM

34
#978 - Slurpie Chapdash / @SlurpieChapdash

05/01/2015 at 10:22PM

35
#979 - Steven Schalhorn / @Unmensch

10/05/2013 at 12:34PM

39
#980 - Origen Theologian / @0rig3n

07/29/2013 at 09:05PM

39
#981 - Mohit Sharma / @m0hitsharma

12/29/2013 at 11:53PM

39
#982 - Matt Walsh / @wattmalsh

02/08/2017 at 07:53AM

39
#983 - gtgtgt02 / @gtgtgt02

04/01/2019 at 01:59PM

40
#984 - ow / @ow34480012

04/29/2019 at 07:35AM

43
#985 - BatAmar Battulga / @b_batamar

08/17/2013 at 09:18AM

76
#986 - Artur Chruszcz / @a_chru

09/14/2013 at 11:00AM

140
#987 - Alam / @aflmp_

06/12/2019 at 04:52AM

189
#988 - mko_io / @mko_io

06/14/2014 at 04:10PM