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):
17
#721 - Alejandro Gómez / @dialelo

09/24/2013 at 05:09PM

17
#722 - James T. Huggett / @Jmeshka

09/26/2013 at 10:17AM

17
#723 - nona urbiz / @nospampleasemam

09/28/2013 at 10:46AM

17
#724 - zaretsky sergey / @zaretskysa

09/29/2013 at 09:13AM

17
#725 - George GZ Zakhour / @AlloGeorge

09/29/2013 at 02:50PM

17
#726 - Vim Golf / @VimGolfUser1

10/03/2013 at 01:26AM

17
#727 - Thameera Senanayaka / @thameera

10/04/2013 at 04:58AM

17
#728 - Sencer Selcuk / @sencers_

10/10/2013 at 04:36AM

17
#729 - Dimiter Petrov / @crackofdusk

10/12/2013 at 05:25PM

17
#730 - Monroe Walker / @monroewlkr

10/16/2013 at 05:42AM

17
#731 - foo / @foo88832727

10/18/2013 at 06:33PM

17
#732 - Chris Ford / @ctford

10/20/2013 at 12:52PM

17
#733 - Gemma Lynn / @ellotheth

10/22/2013 at 05:10AM

17
#734 - Billy Ripper / @dirtlamb5

10/23/2013 at 06:12AM

17
#735 - Bjorn / @bjorn_248

10/24/2013 at 08:57PM

17
#736 - John Boyd / @theboydvoid

10/25/2013 at 03:46AM

17
#737 - Jonas Granquist / @jonasgranquist

10/25/2013 at 06:00PM

17
#738 - n.st / @0013901644043f9

10/27/2013 at 05:22PM

17
#739 - Hamish Hutchings / @hamhut1066

10/29/2013 at 11:23AM

17
#740 - David Tran / @everyzero

10/31/2013 at 03:39PM

17
#741 - c / @mmo_chess

11/03/2013 at 06:40AM

17
#742 - TJ Taylor / @dugancathal

11/05/2013 at 04:19AM

17
#743 - Erez Shinan / @erezsh

11/05/2013 at 02:30PM

17
#744 - Chris Lott / @passiontask

11/14/2013 at 06:04PM

17
#745 - Robin / @randuin

11/15/2013 at 06:47AM

17
#746 - Mathieu Larouche / @matdube

11/15/2013 at 01:21PM

17
#747 - Anton / @AntonKalyaev

11/15/2013 at 04:02PM

17
#748 - Денис Кириченко / @Deni10o

11/15/2013 at 04:03PM

17
#749 - Alexey Mikka / @ILoGM

11/15/2013 at 05:43PM

17
#750 - Rob Findley / @Rob_Findley

11/22/2013 at 03:20AM