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

1079 active golfers, 3165 entries

Leaderboard (lowest score wins):
27
#1051 - Aaron / @_Lordofthevoid_

11/30/2019 at 04:39PM

28
#1052 - Brandon Cornejo / @binaryatrocity

09/26/2013 at 07:46PM

28
#1053 - Paul Brandau / @paulbrandau

07/25/2018 at 02:37AM

29
#1054 - Heron Medeiros / @heronmedeiros

04/18/2014 at 07:40PM

29
#1055 - abhijeet patil / @abhijeetptl5

09/04/2020 at 06:01AM

30
#1056 - Fedor Stepanov / @yasorrat

09/27/2013 at 10:01PM

30
#1057 - The Doctor What / @docwhat

02/21/2014 at 07:28AM

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

03/29/2015 at 02:01AM

31
#1059 - Global Maquereau / @GlobalMaquereau

07/28/2013 at 05:06AM

31
#1060 - Leif Bladt / @leifbladt

08/27/2013 at 03:18PM

31
#1061 - markup / @markup123

02/05/2014 at 04:17AM

31
#1062 - Victor Bjelkholm / @VictorBjelkholm

06/06/2014 at 08:30PM

33
#1063 - Sami Niiranen / @saminiir

10/13/2013 at 08:56AM

33
#1064 - Arjan Molenaar / @ajmolenaar

01/29/2014 at 12:52PM

33
#1065 - Samir Sadek / @netsamir

07/21/2015 at 06:14AM

33
#1066 - Vim Golfer / @VimGolfer6

07/22/2019 at 11:03AM

34
#1067 - jmpak / @jmpak

08/07/2013 at 02:45PM

34
#1068 - Slurpie Chapdash / @SlurpieChapdash

05/01/2015 at 10:22PM

34
#1069 - Hugo O Rivera / @roguh

12/29/2023 at 06:43AM

35
#1070 - Steven Schalhorn / @Unmensch

10/05/2013 at 12:34PM

39
#1071 - Origen Theologian / @0rig3n

07/29/2013 at 09:05PM

39
#1072 - Mohit Sharma / @m0hitsharma

12/29/2013 at 11:53PM

39
#1073 - Matt Walsh / @wattmalsh

02/08/2017 at 07:53AM

39
#1074 - gtgtgt02 / @gtgtgt02

04/01/2019 at 01:59PM

40
#1075 - ow / @ow34480012

04/29/2019 at 07:35AM

43
#1076 - BatAmar Battulga / @b_batamar

08/17/2013 at 09:18AM

76
#1077 - Artur Chruszcz / @a_chru

09/14/2013 at 11:00AM

140
#1078 - Alam / @aflmp_

06/12/2019 at 04:52AM

189
#1079 - mko_io / @mko_io

06/14/2014 at 04:10PM