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
#181 - Rathrio / @Rathrio

02/08/2015 at 03:11PM

14
#182 - Terence Hang / @technic_tec

02/14/2015 at 06:09AM

14
#183 - xieyh11 / @xieyh11

02/17/2015 at 02:24AM

14
#184 - Michael Giuffrida / @mgiuffrida

02/22/2015 at 07:58AM

14
#185 - David English / @Nglish26

03/06/2015 at 11:09PM

14
#186 - Ala' Ibrahim / @alaa_ibrahim

03/10/2015 at 10:03AM

14
#187 - Matthew Pryor / @HodgekaGames

03/10/2015 at 05:47PM

14
#188 - DrHobo / @_DrHobo_

03/11/2015 at 04:57AM

14
#189 - Alexander Kazakov / @volandkot

03/30/2015 at 06:58AM

14
#190 - pftb12345 / @pftb12345

03/30/2015 at 01:29PM

14
#191 - Raj / @brshenoy

04/10/2015 at 03:37PM

14
#192 - Evan Coleman / @edc1591

04/10/2015 at 07:47PM

14
#193 - Benny Wong / @bdotdub

04/10/2015 at 07:47PM

14
#194 - E Both / @enboth

04/11/2015 at 10:08AM

14
#195 - Sigurður Ægir Jónsso / @siggiae

04/14/2015 at 08:08AM

14
#196 - Personal Life Trackr / @PersLifeTrackr

05/27/2015 at 09:38PM

14
#197 - Mutter Mumble / @muttermumble

06/23/2015 at 04:38PM

14
#198 - Louis Burke / @LambdaABeta

07/10/2015 at 01:23PM

14
#199 - S.Lebedev / @drasgo

07/17/2015 at 11:45AM

14
#200 - Ferdev vimgolf / @fergvimgolf

08/10/2015 at 04:29AM

14
#201 - Дима Давыдов / @xaykot

08/15/2015 at 08:31AM

14
#202 - Liam Thurston / @lthurston188

08/18/2015 at 01:14AM

14
#203 - Sam B / @samevanbrenner

08/22/2015 at 05:59PM

14
#204 - Dennis Li / @_DennisLi

08/25/2015 at 07:52AM

14
#205 - Joey / @joeyism101

09/03/2015 at 04:40PM

14
#206 - Kirill Cherkashin / @kirjs

09/19/2015 at 09:53PM

14
#207 - Kevin Merlin / @mp3merlin

09/21/2015 at 12:18PM

14
#208 - Walker Boh / @walker_boh

10/05/2015 at 07:52AM

14
#209 - Domingue Justin / @_jdomingue

10/15/2015 at 04:39PM

14
#210 - DespicableJerk / @JerkDespicable

10/20/2015 at 03:53PM