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

1005 active golfers, 2885 entries

Leaderboard (lowest score wins):
16
#601 - PJ Frazer / @pj_frazer

11/22/2018 at 05:28PM

16
#602 - Performa / @performa6400

12/02/2018 at 09:42AM

16
#603 - Anton Permenev / @a_permenev

02/24/2019 at 01:28PM

16
#604 - rvnjsphdmn / @rvnjsphdmn

05/09/2019 at 02:03AM

16
#605 - Erik Lindeborg / @ErikLindeborg

06/08/2019 at 02:15PM

16
#606 - Billy / @Billy67965753

06/09/2019 at 04:02PM

16
#607 - Ivo Blöchliger / @aigledesalpes

08/04/2019 at 08:41PM

16
#608 - Christian / @paierlep

09/03/2019 at 09:58PM

16
#609 - Vim Player / @PlayerVim

09/14/2019 at 01:44PM

16
#610 - Brandon Harrison / @llAboutB

09/24/2019 at 08:56PM

16
#611 - vicver09 / @vicver091

12/18/2019 at 07:09PM

17
#612 - joe di castro / @joe_di_castro

07/28/2013 at 07:31AM

17
#613 - Tim Chase / @gumnos

07/28/2013 at 12:42PM

17
#614 - Wayne Franklin / @waf1waf

07/28/2013 at 12:54PM

17
#615 - Vinicius Souza / @vsouzas

07/28/2013 at 01:43PM

17
#616 - fSchl / @FelixSchlitter

07/29/2013 at 07:51AM

17
#617 - Eric Söderström / @eksoderstrom

07/29/2013 at 09:12PM

17
#618 - Asa Jay / @HiFreeo

07/29/2013 at 10:11PM

17
#619 - Brian Besmanoff / @BrianBesmanoff

07/29/2013 at 10:45PM

17
#620 - cromac / @cromac

07/29/2013 at 11:03PM

17
#621 - Tullio Facchinetti / @toolleeo

07/30/2013 at 10:02AM

17
#622 - Austin Quan / @n00blebowl

07/31/2013 at 12:29AM

17
#623 - Christophe de Vienne / @cmdevienne

07/31/2013 at 08:56PM

17
#624 - Ben Hicks / @benkhicks

07/31/2013 at 10:04PM

17
#625 - Tom Saeger / @tomsaeger

08/01/2013 at 07:17AM

17
#626 - James / @Dronak

08/01/2013 at 02:23PM

17
#627 - Heath Patterson / @HeathPatterson

08/01/2013 at 06:08PM

17
#628 - Justin / @justinjaffray

08/03/2013 at 12:22AM

17
#629 - Eddie Zaneski / @eddiezane

08/03/2013 at 04:38PM

17
#630 - Tallak Tveide / @tallakt

08/03/2013 at 05:14PM