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

932 active golfers, 2654 entries

Leaderboard (lowest score wins):
14
#211 - DespicableJerk / @JerkDespicable

10/20/2015 at 03:53PM

14
#212 - NuM / @NuM314

10/24/2015 at 07:25AM

14
#213 - Árpád Krejczinger / @krarpi

10/30/2015 at 01:09PM

14
#214 - Aaron Mininger / @AMininger

11/10/2015 at 06:54PM

14
#215 - Get Sharp / @get_Sh4rp

11/15/2015 at 06:04AM

14
#216 - Rémi / @daaaaft

11/18/2015 at 03:10PM

14
#217 - Wilmer Bandres / @WilmerBandres

12/05/2015 at 08:41PM

14
#218 - ハチポケッツ / @8pockets

12/14/2015 at 12:28AM

14
#219 - Charlie / @wookie_giant

12/22/2015 at 09:27PM

14
#220 - Faat / @i_faat

12/30/2015 at 03:43PM

14
#221 - Jon Krause / @jkrause314

01/10/2016 at 08:54AM

14
#222 - jackliusr / @jackliusr

01/13/2016 at 03:33AM

14
#223 - Aleksey Zhidkov / @AlexeyZhidkov

01/25/2016 at 05:42AM

14
#224 - Roberto Carraretto / @robcarraretto

01/26/2016 at 12:24AM

14
#225 - Austin Wood / @indiesquidge

02/01/2016 at 05:49PM

14
#226 - Michael Buckley / @apolatg

02/13/2016 at 07:40PM

14
#227 - Thijs van den Anker / @thijsvdanker

02/15/2016 at 07:41PM

14
#228 - ben kavanagh / @bkava

02/22/2016 at 11:10PM

14
#229 - John Smith / @literacyisgood

02/24/2016 at 08:51PM

14
#230 - Hao Chen / @Chen_Hao

03/14/2016 at 08:26AM

14
#231 - Saki Gw / @Sakigw

03/25/2016 at 03:48PM

14
#232 - Jan Bundesmann / @janbundesmann

03/29/2016 at 01:51PM

14
#233 - Cristian Lupașcu / @clupasq

03/31/2016 at 02:23PM

14
#234 - Dinesh Bhosale / @MrDineshBhosale

04/01/2016 at 09:19AM

14
#235 - Victorien Lorcy / @LorcyVictorien

05/28/2016 at 08:27AM

14
#236 - Justin Snopek / @JustinSnopek

05/30/2016 at 07:57PM

14
#237 - tgmeng / @lazy_fabric

06/10/2016 at 03:44PM

14
#238 - John Doe Sr. / @johndoe67890543

06/11/2016 at 01:40PM

14
#239 - Ameen P / @Ameen_P1

06/18/2016 at 09:24AM

14
#240 - Will / @obiwan__k3n00bi

07/31/2016 at 06:47PM