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):
16
#601 - eBrnd / @eBrnd

11/02/2014 at 12:56PM

16
#602 - Andy Tockman / @atckmn

11/22/2014 at 02:39PM

16
#603 - Jake Worth / @jwworth

11/28/2014 at 06:00PM

16
#604 - Test User / @TestUserIgnore

12/04/2014 at 10:58PM

16
#605 - Steve Alison / @Steve_Alison

12/17/2014 at 09:38PM

16
#606 - Tamás Torba / @torbatamas

12/30/2014 at 07:59PM

16
#607 - Carlos A Henríquez Q / @lagunex

01/19/2015 at 01:50PM

16
#608 - Jonathan Martindell / @jonmartindell

02/13/2015 at 08:45PM

16
#609 - TheProgrammer971 / @tp971

03/14/2015 at 01:51AM

16
#610 - petec / @lepht

03/23/2015 at 11:13PM

16
#611 - Mariano Macchi / @mmacchif

03/29/2015 at 08:18PM

16
#612 - Anderson Mesquita / @andersonvom

04/17/2015 at 06:53AM

16
#613 - Gracjan Grala / @gracjangrala

04/24/2015 at 10:39PM

16
#614 - Hendrik Lammers / @hendriklammers

05/08/2015 at 09:59PM

16
#615 - ɹǝsnɐɥsıʇnɹ uoɾ / @JonRutis

06/04/2015 at 03:14AM

16
#616 - Stefan Knudsen / @knud32

06/19/2015 at 08:19AM

16
#617 - Clark DuVall / @theclarkatron

07/05/2015 at 05:36PM

16
#618 - Teemu Okkonen / @TeemuOkkonen

07/10/2015 at 07:58PM

16
#619 - Mika .B / @Michael_Ben_Ali

09/10/2015 at 03:08PM

16
#620 - Lifepillar / @lifepillar

09/26/2015 at 06:34PM

16
#621 - Gerald Tilma / @GeraldTilma

10/17/2015 at 09:29PM

16
#622 - Bi Ran / @biran007

10/24/2015 at 07:30AM

16
#623 - Ryan Marcotte / @ryanjmarcotte

11/11/2015 at 03:23PM

16
#624 - Ryuichiro / @ryuichiro44

11/20/2015 at 12:45PM

16
#625 - Izabel Jelenić / @IzabelJelenic

12/25/2015 at 10:38PM

16
#626 - DocThor Neuland / @DocThorNeuland

01/07/2016 at 04:17PM

16
#627 - Jasbir Singh / @jasbirsingh11

01/16/2016 at 10:05PM

16
#628 - Durga Swaroop Perla / @durgaswaroop

02/06/2016 at 12:30PM

16
#629 - glepha / @glepha_vim

03/22/2016 at 04:34AM

16
#630 - Chenut Ludovic / @7Brwa7

03/31/2016 at 11:40AM