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):
15
#511 - Marco Meinardi / @Kee__no

01/13/2023 at 01:17PM

15
#512 - 咸糖🎯 / @GIA917229015

07/09/2023 at 03:02PM

15
#513 - someone / @IKvacenok

07/25/2023 at 10:14PM

15
#514 - philikarus / @philikarus

02/16/2024 at 07:54AM

16
#515 - Kai Yuan / @kentyuan

07/28/2013 at 08:49AM

16
#516 - Ingo / @ist3fani

07/28/2013 at 09:54AM

16
#517 - Maksim S. / @waynesayonara

07/28/2013 at 03:48PM

16
#518 - ———đίxίє—flαтlίиє——— / @_dixie_flatline

07/29/2013 at 12:15AM

16
#519 - Steve Tjoa / @stevetjoa

07/29/2013 at 01:42AM

16
#520 - Ben Zittlau / @benzittlau

07/29/2013 at 10:37PM

16
#521 - A / @Tower_1980

07/30/2013 at 02:08PM

16
#522 - Aaron Bieber / @aaronbieber

07/30/2013 at 02:22PM

16
#523 - RobertT / @techrt2050

07/30/2013 at 10:27PM

16
#524 - SpaceLi / @spacelis

07/31/2013 at 07:10PM

16
#525 - Matt Robbins / @mcrmfc

08/01/2013 at 08:19AM

16
#526 - cj / @cj01101

08/08/2013 at 01:04PM

16
#527 - Bartlomiej P / @bartlomiej_p

08/12/2013 at 09:16PM

16
#528 - David Pathakjee / @DavidPathakjee

08/14/2013 at 04:14AM

16
#529 - Risabellah / @Risabellah

08/19/2013 at 11:35PM

16
#530 - Drew Neil / @nelstrom

08/27/2013 at 09:41AM

16
#531 - kana / @kana1

08/27/2013 at 10:22AM

16
#532 - Bradd Szonye / @bszonye

08/27/2013 at 11:56PM

16
#533 - Eric Potter / @pottereric

08/29/2013 at 08:37PM

16
#534 - Fernando Axel Ellis / @Axel_Ellis

09/10/2013 at 08:44PM

16
#535 - Hawk Newton / @hawknewton

09/17/2013 at 02:10AM

16
#536 - Christopher Gioia / @gioia_gioi

09/17/2013 at 05:06AM

16
#537 - Steven Weller / @suweller

09/26/2013 at 03:17PM

16
#538 - Hieu M. Nguyen / @ngnmhieu

10/03/2013 at 04:12AM

16
#539 - newton / @newtonsmartt

10/15/2013 at 06:04PM

16
#540 - Jesse Nazario / @jessenzr

10/16/2013 at 07:17PM