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
#151 - Steffen Siering / @ursobln

06/03/2014 at 09:48PM

14
#152 - Sntano Euhsk / @SEuhsk

06/06/2014 at 12:50AM

14
#153 - Jonas Arnold Clasen / @jonasclasen

06/08/2014 at 07:52PM

14
#154 - Robert Bruce / @therealrobru

06/10/2014 at 04:58PM

14
#155 - John Meisner / @jmeisned

06/24/2014 at 06:00PM

14
#156 - Tim Vim / @vim_tim

07/01/2014 at 04:47PM

14
#157 - Lasse Dalegaard / @ldalegaard

07/06/2014 at 09:38PM

14
#158 - magizbox / @rain_1024

07/13/2014 at 03:18AM

14
#159 - Paul Rodgers / @oursjaune

07/13/2014 at 02:51PM

14
#160 - Siddhanathan S. / @siddhanathan

07/15/2014 at 07:17PM

14
#161 - Birkir Ólafsson / @Birkirlafsson

07/21/2014 at 09:58PM

14
#162 - Oleg Tsymbalyuk / @oleg_tc

07/22/2014 at 05:01AM

14
#163 - Dominik Szerszeń / @DominikSze

07/22/2014 at 11:06AM

14
#164 - Slartibartfast / @S_Bartfast

08/11/2014 at 08:37AM

14
#165 - Roman Charushin / @lompee

08/14/2014 at 01:10PM

14
#166 - booom / @ateukme

08/19/2014 at 10:11PM

14
#167 - Alexey Permyakov / @AlexeyPermyakov

08/24/2014 at 03:28PM

14
#168 - Dario Avitabile / @tutticapaci

09/06/2014 at 09:35PM

14
#169 - Caek / @Caek_

09/22/2014 at 01:45AM

14
#170 - Pierre Stévens / @pierre_stv

10/06/2014 at 01:05PM

14
#171 - Daniel Pham / @dany_pham

10/14/2014 at 11:09PM

14
#172 - Nicholas Lee-Hone / @NicholasLeeHone

10/16/2014 at 04:08PM

14
#173 - Ryan Glassett / @rollsavager

10/23/2014 at 12:50AM

14
#174 - Pete Johns / @johnsyweb

11/09/2014 at 08:51AM

14
#175 - Ivan Brennan / @ivanbrennan

12/01/2014 at 01:32PM

14
#176 - John Diamond / @jcdmnd

12/07/2014 at 03:44PM

14
#177 - Yan Yang / @_YanYang

12/08/2014 at 09:58AM

14
#178 - Wade / @vvandy

12/16/2014 at 05:02AM

14
#179 - Oli / @o_lalonde

01/11/2015 at 03:07PM

14
#180 - kimber gonzalez / @kimberlycreates

01/13/2015 at 04:32PM