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):
14
#1 - Urtica dioica / @udioica

07/28/2013 at 06:28AM

14
#2 - Nathan / @n8kowald

07/29/2013 at 09:55PM

14
#3 - Slycelote / @Slycelote

08/01/2013 at 07:20PM

14
#4 - Armand Halbert / @armandhalbert

08/01/2013 at 09:07PM

14
#5 - Nathan / @NathanHarperoni

08/02/2013 at 02:28PM

14
#6 - Felix Stridsberg / @FelixStridsberg

08/03/2013 at 12:27PM

14
#7 - retired account / @retired10072015

08/03/2013 at 04:33PM

14
#8 - David Baynard / @dbaynard

08/04/2013 at 04:31AM

14
#9 - zhwbeta / @XiHongRenShi

08/04/2013 at 04:31PM

14
#10 - Andy Balaam / @andybalaam

08/05/2013 at 03:27PM

14
#11 - Francois Picalausa / @fpicalausa

08/07/2013 at 08:58AM

14
#12 - Cao Cuong Ngo / @nccuong

08/09/2013 at 10:01AM

14
#13 - dan baker / @danbaker_a

08/09/2013 at 07:44PM

14
#14 - William Snyders / @iam2391212

08/10/2013 at 08:46AM

14
#15 - Michael LeCompte / @michaelslec

08/12/2013 at 01:05AM

14
#16 - _ky_ / @ultimate_ky

08/13/2013 at 04:05AM

14
#17 - Michael / @mjs2600

08/14/2013 at 12:15AM

14
#18 - Huu Nguyen / @huudev

08/14/2013 at 11:30PM

14
#19 - Petro Тrouq / @zulolosi

08/17/2013 at 06:03PM

14
#20 - moo goo / @m00g000

08/18/2013 at 10:37PM

14
#21 - Jiří Chára / @JiriChara

08/21/2013 at 01:40PM

14
#22 - Chris Webb / @chriswebb_42

08/22/2013 at 05:47AM

14
#23 - Xinruo Sun / @xiaoruoruo

08/23/2013 at 09:47AM

14
#24 - Jason Davidson / @aka_lingy

08/24/2013 at 05:55PM

14
#25 - Abdel Said / @abdelsaid

08/24/2013 at 08:39PM

14
#26 - Emile Swarts / @EmileSwarts

08/25/2013 at 07:22PM

14
#27 - Dan / @dan_winkler

08/26/2013 at 09:50AM

14
#28 - Tyler HT Cipriani / @tylercipriani

08/26/2013 at 10:15PM

14
#29 - Bradley Tse / @bradleytse

08/27/2013 at 02:45AM

14
#30 - Trevor Powell / @DoomedBunnies

08/27/2013 at 12:10PM