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

951 active golfers, 2726 entries

Leaderboard (lowest score wins):
16
#541 - Gerald Tilma / @GeraldTilma

10/17/2015 at 09:29PM

16
#542 - Bi Ran / @biran007

10/24/2015 at 07:30AM

16
#543 - Ryan Marcotte / @ryanjmarcotte

11/11/2015 at 03:23PM

16
#544 - Ryuichiro / @ryuichiro44

11/20/2015 at 12:45PM

16
#545 - Izabel Jelenić / @IzabelJelenic

12/25/2015 at 10:38PM

16
#546 - DocThor Neuland / @DocThorNeuland

01/07/2016 at 04:17PM

16
#547 - Jasbir Singh / @jasbirsingh11

01/16/2016 at 10:05PM

16
#548 - Durga Swaroop Perla / @durgaswaroop

02/06/2016 at 12:30PM

16
#549 - glepha / @glepha_vim

03/22/2016 at 04:34AM

16
#550 - Chenut Ludovic / @7Brwa7

03/31/2016 at 11:40AM

16
#551 - iNaKoll / @iNaKoll

05/07/2016 at 09:05PM

16
#552 - John Goes / @johnwgoes

05/07/2016 at 10:07PM

16
#553 - Timothy Caleb Nordlo / @tnordloh

06/27/2016 at 09:10PM

16
#554 - Thiago Belem / @TiuTalk

08/31/2016 at 04:02AM

16
#555 - TweetDreams / @TweetMusicians

10/09/2016 at 12:45AM

16
#556 - alkozu / @alkozu

11/28/2016 at 03:53PM

16
#557 - Michał Dytko / @DytkoM

12/21/2016 at 07:25AM

16
#558 - Colin Jacobs / @coljac

03/14/2017 at 11:41AM

16
#559 - caplod / @caplod

03/25/2017 at 02:58PM

16
#560 - Aurélien Hervé / @aurel_herve

04/21/2017 at 02:24PM

16
#561 - Brian Hall / @_bruab_

10/03/2017 at 03:18PM

16
#562 - Jens C. Hansen / @jens_clh

11/21/2017 at 04:08PM

16
#563 - Spacesh1p / @spacesh1pdev

01/04/2018 at 10:11AM

16
#564 - mass / @mass256

07/10/2018 at 08:22AM

16
#565 - yqu212 / @yqu212

07/27/2018 at 12:54PM

16
#566 - Francesco Sacchi / @depsir

08/07/2018 at 06:53AM

16
#567 - d8d90d / @d8d90d

08/19/2018 at 04:58PM

16
#568 - Jeff / @sir_wiggles3

09/09/2018 at 04:29AM

16
#569 - PJ Frazer / @pj_frazer

11/22/2018 at 05:28PM

16
#570 - Performa / @performa6400

12/02/2018 at 09:42AM