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

942 active golfers, 2684 entries

Leaderboard (lowest score wins):
14
#151 - Alex Tercete / @alextercete

06/03/2014 at 12:03PM

14
#152 - Steffen Siering / @ursobln

06/03/2014 at 09:48PM

14
#153 - Sntano Euhsk / @SEuhsk

06/06/2014 at 12:50AM

14
#154 - Jonas Arnold Clasen / @jonasclasen

06/08/2014 at 07:52PM

14
#155 - Robert Bruce / @therealrobru

06/10/2014 at 04:58PM

14
#156 - John Meisner / @jmeisned

06/24/2014 at 06:00PM

14
#157 - Tim Vim / @vim_tim

07/01/2014 at 04:47PM

14
#158 - Lasse Dalegaard / @ldalegaard

07/06/2014 at 09:38PM

14
#159 - magizbox / @rain_1024

07/13/2014 at 03:18AM

14
#160 - Paul Rodgers / @oursjaune

07/13/2014 at 02:51PM

14
#161 - Siddhanathan S. / @siddhanathan

07/15/2014 at 07:17PM

14
#162 - Birkir Ólafsson / @Birkirlafsson

07/21/2014 at 09:58PM

14
#163 - Oleg Tsymbalyuk / @oleg_tc

07/22/2014 at 05:01AM

14
#164 - Dominik Szerszeń / @DominikSze

07/22/2014 at 11:06AM

14
#165 - Slartibartfast / @S_Bartfast

08/11/2014 at 08:37AM

14
#166 - Roman Charushin / @lompee

08/14/2014 at 01:10PM

14
#167 - booom / @ateukme

08/19/2014 at 10:11PM

14
#168 - Alexey Permyakov / @AlexeyPermyakov

08/24/2014 at 03:28PM

14
#169 - Dario Avitabile / @tutticapaci

09/06/2014 at 09:35PM

14
#170 - Caek / @Caek_

09/22/2014 at 01:45AM

14
#171 - Pierre Stévens / @pierre_stv

10/06/2014 at 01:05PM

14
#172 - Daniel Pham / @dany_pham

10/14/2014 at 11:09PM

14
#173 - Nicholas Lee-Hone / @NicholasLeeHone

10/16/2014 at 04:08PM

14
#174 - Ryan Glassett / @rollsavager

10/23/2014 at 12:50AM

14
#175 - Pete Johns / @johnsyweb

11/09/2014 at 08:51AM

14
#176 - Ivan Brennan / @ivanbrennan

12/01/2014 at 01:32PM

14
#177 - John Diamond / @jcdmnd

12/07/2014 at 03:44PM

14
#178 - Yan Yang / @_YanYang

12/08/2014 at 09:58AM

14
#179 - Wade / @vvandy

12/16/2014 at 05:02AM

14
#180 - Oli Lalonde / @o_lalonde

01/11/2015 at 03:07PM