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

962 active golfers, 2755 entries

Leaderboard (lowest score wins):
17
#631 - John Doe / @mjjabillo

09/16/2013 at 01:50PM

17
#632 - Lee Jackson / @morphemass

09/20/2013 at 12:37PM

17
#633 - Colin Sheaff / @selfsimilar

09/23/2013 at 03:10AM

17
#634 - Juan Guerrero / @jguerrero_

09/23/2013 at 09:13AM

17
#635 - Alejandro Gómez / @dialelo

09/24/2013 at 05:09PM

17
#636 - James T. Huggett / @Jmeshka

09/26/2013 at 10:17AM

17
#637 - nona urbiz / @nospampleasemam

09/28/2013 at 10:46AM

17
#638 - zaretsky sergey / @zaretskysa

09/29/2013 at 09:13AM

17
#639 - George GZ Zakhour / @AlloGeorge

09/29/2013 at 02:50PM

17
#640 - Vim Golf / @VimGolfUser1

10/03/2013 at 01:26AM

17
#641 - Thameera Senanayaka / @thameera

10/04/2013 at 04:58AM

17
#642 - Sencer Selcuk / @sencers_

10/10/2013 at 04:36AM

17
#643 - Dimiter Petrov / @crackofdusk

10/12/2013 at 05:25PM

17
#644 - Monroe Walker / @monroewlkr

10/16/2013 at 05:42AM

17
#645 - foo / @foo88832727

10/18/2013 at 06:33PM

17
#646 - Chris Ford / @ctford

10/20/2013 at 12:52PM

17
#647 - Gemma Lynn / @ellotheth

10/22/2013 at 05:10AM

17
#648 - Billy Ripper / @dirtlamb5

10/23/2013 at 06:12AM

17
#649 - Bjorn / @bjorn_248

10/24/2013 at 08:57PM

17
#650 - John Boyd / @theboydvoid

10/25/2013 at 03:46AM

17
#651 - Jonas Granquist / @jonasgranquist

10/25/2013 at 06:00PM

17
#652 - n.st / @0013901644043f9

10/27/2013 at 05:22PM

17
#653 - Hamish Hutchings / @hamhut1066

10/29/2013 at 11:23AM

17
#654 - Fnord Everywhere / @FnordE

10/30/2013 at 11:52AM

17
#655 - David Tran / @everyzero

10/31/2013 at 03:39PM

17
#656 - c / @mmo_chess

11/03/2013 at 06:40AM

17
#657 - TJ Taylor / @dugancathal

11/05/2013 at 04:19AM

17
#658 - Erez Shinan / @erezsh

11/05/2013 at 02:30PM

17
#659 - Chris Lott / @passiontask

11/14/2013 at 06:04PM

17
#660 - Robin / @randuin

11/15/2013 at 06:47AM