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

951 active golfers, 2726 entries

Leaderboard (lowest score wins):
17
#691 - Trevor / @bebopninja

01/29/2014 at 01:09PM

17
#692 - Andrew Clissold / @aclissold

01/30/2014 at 01:34PM

17
#693 - Korbinian Stoemmer / @PaulSmecker

01/30/2014 at 08:48PM

17
#694 - Aurélien Vallée / @aurelienvallee

01/31/2014 at 12:58PM

17
#695 - jimauthors / @jimauthors

02/01/2014 at 12:06AM

17
#696 - Olivier Parent / @oliparcol

02/02/2014 at 04:05PM

17
#697 - Shadow Fiend / @Qumidium

02/02/2014 at 04:37PM

17
#698 - Amy Lim / @chasingkytes

02/03/2014 at 12:07AM

17
#699 - freestlr / @freestlr

02/03/2014 at 08:53AM

17
#700 - Rustam A. Gasanov / @rustamagasanov

02/03/2014 at 06:30PM

17
#701 - Lance B / @HeyItsLanceB

02/03/2014 at 11:06PM

17
#702 - Kevin Thompson / @kevinthompson

02/05/2014 at 06:42PM

17
#703 - Patrick Oscity / @der_padde

02/10/2014 at 12:02AM

17
#704 - Михайлов Борис / @kagux

02/24/2014 at 10:06AM

17
#705 - shinokada / @shinokada

02/26/2014 at 12:34PM

17
#706 - Steven Wiggins / @StevenWiggins

02/27/2014 at 04:31PM

17
#707 - Ernest Walzel / @ErnestWalzel

02/28/2014 at 08:38AM

17
#708 - Aaron Bohannon / @morefun2compute

02/28/2014 at 11:28PM

17
#709 - Ri / @riateche

03/01/2014 at 10:11PM

17
#710 - Victor Ramirez / @virako

03/04/2014 at 08:43AM

17
#711 - Nicholas Land / @LandsPlanet

03/06/2014 at 08:09PM

17
#712 - Brandon / @bjpowel2

03/06/2014 at 08:39PM

17
#713 - Bart / @oneofmanybarts

03/10/2014 at 03:39PM

17
#714 - Bo Zhi / @zhibo_ng

03/11/2014 at 08:04AM

17
#715 - Sean Huber / @bonquesha99

03/12/2014 at 04:56PM

17
#716 - Yiyang Chen / @yiyangc91

03/16/2014 at 12:55PM

17
#717 - Brian Olpin / @bolpin

03/22/2014 at 10:06PM

17
#718 - Jacob / @jayekub

03/23/2014 at 12:21AM

17
#719 - Chad / @chadskeeters

04/04/2014 at 01:32PM

17
#720 - senbong / @senbong87

04/05/2014 at 03:34AM