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

974 active golfers, 2799 entries

Leaderboard (lowest score wins):
17
#631 - Jan Wedekind / @wedesoft

08/27/2013 at 07:46PM

17
#632 - Fl4t / @Fl4t

08/27/2013 at 10:28PM

17
#633 - Mislav Marohnić / @mislav

08/28/2013 at 12:22PM

17
#634 - Tony Han / @tony612_han

08/28/2013 at 02:24PM

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

08/28/2013 at 05:46PM

17
#636 - Jose Javier Trapero / @jjaviertb

08/29/2013 at 06:50PM

17
#637 - Timothée Gauthier / @zmf_tim

08/31/2013 at 11:05PM

17
#638 - Matt Boehm / @mattboehm

08/31/2013 at 11:06PM

17
#639 - Daniel Kovacic / @dkov01

09/02/2013 at 07:25PM

17
#640 - engy / @engydmw

09/02/2013 at 08:53PM

17
#641 - John Doe / @mjjabillo

09/16/2013 at 01:50PM

17
#642 - Lee Jackson / @morphemass

09/20/2013 at 12:37PM

17
#643 - Colin Sheaff / @selfsimilar

09/23/2013 at 03:10AM

17
#644 - Juan Guerrero / @jguerrero_

09/23/2013 at 09:13AM

17
#645 - Alejandro Gómez / @dialelo

09/24/2013 at 05:09PM

17
#646 - James T. Huggett / @Jmeshka

09/26/2013 at 10:17AM

17
#647 - nona urbiz / @nospampleasemam

09/28/2013 at 10:46AM

17
#648 - zaretsky sergey / @zaretskysa

09/29/2013 at 09:13AM

17
#649 - George GZ Zakhour / @AlloGeorge

09/29/2013 at 02:50PM

17
#650 - Vim Golf / @VimGolfUser1

10/03/2013 at 01:26AM

17
#651 - Thameera Senanayaka / @thameera

10/04/2013 at 04:58AM

17
#652 - Sencer Selcuk / @sencers_

10/10/2013 at 04:36AM

17
#653 - Dimiter Petrov / @crackofdusk

10/12/2013 at 05:25PM

17
#654 - Monroe Walker / @monroewlkr

10/16/2013 at 05:42AM

17
#655 - foo / @foo88832727

10/18/2013 at 06:33PM

17
#656 - Chris Ford / @ctford

10/20/2013 at 12:52PM

17
#657 - Gemma Lynn / @ellotheth

10/22/2013 at 05:10AM

17
#658 - Billy Ripper / @dirtlamb5

10/23/2013 at 06:12AM

17
#659 - Bjorn / @bjorn_248

10/24/2013 at 08:57PM

17
#660 - John Boyd / @theboydvoid

10/25/2013 at 03:46AM