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):
14
#361 - Hans Wurscht / @HansW313

09/22/2023 at 09:40AM

14
#362 - asirago / @asiragoo

12/12/2023 at 05:12AM

14
#363 - sosa-daniel / @sosa-daniel

12/29/2023 at 09:36AM

14
#364 - Anaritus / @Anaritus

02/29/2024 at 11:05AM

14
#365 - Berel94 / @Berel94

04/02/2024 at 08:28PM

14
#366 - Peppa Pig / @PeppaPigSg

06/12/2024 at 01:08AM

14
#367 - nickGPT / @nickandbro

08/28/2024 at 06:16PM

14
#368 - Magnus Wahlstrand / @magnuswahlstrand

12/27/2024 at 08:52PM

15
#369 - mnx / @mnxx

07/29/2013 at 01:19PM

15
#370 - Forrest Zeisler / @fzeisler

07/29/2013 at 08:09PM

15
#371 - Nikita Mikhaylin / @NikMikh

07/31/2013 at 02:59AM

15
#372 - Chris Brown / @engineercyb

08/04/2013 at 01:38AM

15
#373 - 0x0dd / @0x0DD

08/04/2013 at 05:51PM

15
#374 - Ian Oxley / @ianoxley

08/08/2013 at 09:11AM

15
#375 - adi li / @guessimtoolate

08/10/2013 at 06:17PM

15
#376 - Kevin Etienne / @42__kevin

08/18/2013 at 06:11PM

15
#377 - Dom Armstrong / @dom_cycleface

08/19/2013 at 06:17PM

15
#378 - Simon Coffey / @urbanautomaton

08/28/2013 at 11:08AM

15
#379 - Jon Keating / @emostar

09/02/2013 at 08:43AM

15
#380 - Andrew Noyes / @seyonwerdna

09/03/2013 at 11:42PM

15
#381 - yaon / @yaon4

09/10/2013 at 02:21PM

15
#382 - isayoldchap / @isayoldchap

09/11/2013 at 12:25AM

15
#383 - atemeresclencare / @kfzhyzdj

09/14/2013 at 03:43AM

15
#384 - brett / @brettyukich

09/18/2013 at 10:00AM

15
#385 - Jaime sánchez / @jashbeta

09/28/2013 at 02:04PM

15
#386 - Killian Huyghe / @KillianHUYGHE

09/29/2013 at 12:58AM

15
#387 - Marcin Górnik / @gornikm

10/06/2013 at 05:52PM

15
#388 - aRkadeFR / @aRkadeFR

10/06/2013 at 07:21PM

15
#389 - Nik Klassen / @nik_klassen

10/21/2013 at 10:46PM

15
#390 - Michael / @Acktagatta

11/03/2013 at 11:34PM