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

945 active golfers, 2691 entries

Leaderboard (lowest score wins):
17
#661 - D / @justcallmedrago

12/15/2013 at 12:48AM

17
#662 - Anatoliy C. / @1602

12/16/2013 at 03:08PM

17
#663 - Anhad Jai Singh / @Ayos

12/16/2013 at 10:17PM

17
#664 - Petr Broz / @ipetrbroz

12/17/2013 at 07:10PM

17
#665 - adamblank / @adamblank

12/21/2013 at 02:06AM

17
#666 - Paul Chandler / @chandlpa

12/21/2013 at 06:31AM

17
#667 - Sam Burk / @smwbk

12/21/2013 at 10:31PM

17
#668 - Zach Kemp / @zvksf

12/23/2013 at 04:25PM

17
#669 - Russ Adams / @rustushki

12/23/2013 at 06:26PM

17
#670 - ウチコ / @memememomo

12/24/2013 at 03:42AM

17
#671 - Tan Le ☺ / @tancnle

01/02/2014 at 03:58AM

17
#672 - a / @asdfsdafdsfdsaf

01/04/2014 at 01:29AM

17
#673 - Alexander Borysov / @ab99c5e2

01/07/2014 at 02:12PM

17
#674 - Tudor Barbu / @motanelu

01/12/2014 at 11:09AM

17
#675 - curist / @curist

01/16/2014 at 02:58AM

17
#676 - Andreas Källberg / @Anka213

01/16/2014 at 08:49PM

17
#677 - Benjamin Glassman / @squizztoupe

01/19/2014 at 10:23PM

17
#678 - flembo's dad / @Lspacewalker

01/24/2014 at 03:08PM

17
#679 - Mark Wart / @2mando

01/28/2014 at 11:04AM

17
#680 - Almog / @almog

01/28/2014 at 01:15PM

17
#681 - Amir Kremer / @AmirKremer

01/28/2014 at 01:16PM

17
#682 - Chase Lambert / @chasediscs

01/29/2014 at 12:13AM

17
#683 - KR / @ClubPersh

01/29/2014 at 01:20AM

17
#684 - Chris Ciulla / @chris_ciulla

01/29/2014 at 03:08AM

17
#685 - Jay R Bolton / @the_swerve

01/29/2014 at 03:21AM

17
#686 - Trevor / @bebopninja

01/29/2014 at 01:09PM

17
#687 - Andrew Clissold / @aclissold

01/30/2014 at 01:34PM

17
#688 - Korbinian Stoemmer / @PaulSmecker

01/30/2014 at 08:48PM

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

01/31/2014 at 12:58PM

17
#690 - jimauthors / @jimauthors

02/01/2014 at 12:06AM