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
#601 - Joe Fox / @mrWumpus

08/17/2013 at 04:01AM

17
#602 - marmelad / @jordgubbssylt

08/17/2013 at 09:56AM

17
#603 - leinlein / @nieldomingo

08/17/2013 at 10:02AM

17
#604 - Thierry Flauss / @ThFjunior

08/17/2013 at 04:37PM

17
#605 - venkatakrishnan / @venkatk_

08/19/2013 at 08:58AM

17
#606 - Vladyslav Marsikov / @gagabogolo

08/20/2013 at 07:38PM

17
#607 - Rémi Jézéquel / @Remjez

08/23/2013 at 10:04AM

17
#608 - Marin Usalj / @_supermarin

08/25/2013 at 12:27PM

17
#609 - Sofia Balicka / @so_phifi

08/25/2013 at 05:05PM

17
#610 - andrea cedraro / @vheon

08/26/2013 at 01:46PM

17
#611 - Nick Harding / @nick_harding

08/27/2013 at 05:24PM

17
#612 - meitham / @meitham

08/27/2013 at 06:37PM

17
#613 - Jan Wedekind / @wedesoft

08/27/2013 at 07:46PM

17
#614 - Fl4t / @Fl4t

08/27/2013 at 10:28PM

17
#615 - Mislav Marohnić / @mislav

08/28/2013 at 12:22PM

17
#616 - Tony Han / @tony612_han

08/28/2013 at 02:24PM

17
#617 - Mihai Crăiță / @mihai_craita

08/28/2013 at 05:46PM

17
#618 - Jose Javier Trapero / @jjaviertb

08/29/2013 at 06:50PM

17
#619 - Timothée Gauthier / @zmf_tim

08/31/2013 at 11:05PM

17
#620 - Matt Boehm / @mattboehm

08/31/2013 at 11:06PM

17
#621 - Daniel Kovacic / @dkov01

09/02/2013 at 07:25PM

17
#622 - engy / @engydmw

09/02/2013 at 08:53PM

17
#623 - John Doe / @mjjabillo

09/16/2013 at 01:50PM

17
#624 - Lee Jackson / @morphemass

09/20/2013 at 12:37PM

17
#625 - Colin Sheaff / @selfsimilar

09/23/2013 at 03:10AM

17
#626 - Juan Guerrero / @jguerrero_

09/23/2013 at 09:13AM

17
#627 - Alejandro Gómez / @dialelo

09/24/2013 at 05:09PM

17
#628 - James T. Huggett / @Jmeshka

09/26/2013 at 10:17AM

17
#629 - nona urbiz / @nospampleasemam

09/28/2013 at 10:46AM

17
#630 - zaretsky sergey / @zaretskysa

09/29/2013 at 09:13AM