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):
17
#931 - Aioriya / @AioriyaDonk

08/28/2019 at 03:41AM

17
#932 - Ariel Miculas / @ArielMiculas

09/23/2019 at 03:27PM

17
#933 - Josefina Alconada / @jochiAlconada

10/06/2019 at 07:39AM

17
#934 - GrimmT / @GrimmT10

11/02/2019 at 09:51AM

17
#935 - 0xNinja / @0x_Ninja

11/14/2019 at 10:27AM

17
#936 - Andrei Popescu / @AndreiTheory

12/09/2019 at 09:45PM

17
#937 - James Casey / @hanavi

12/21/2019 at 10:51PM

17
#938 - Quentin Leroy / @qnleroy

05/14/2020 at 02:24PM

17
#939 - Leonard Wagner / @leonard2997

08/18/2020 at 06:45AM

17
#940 - Kaustubh Murumkar / @k_austub_h

09/26/2020 at 12:10AM

17
#941 - Arijus / @argshook

10/16/2020 at 01:57PM

17
#942 - Gytis Vinclovas / @GytisVinclovas

10/16/2020 at 01:58PM

17
#943 - Alira / @Alira_1

12/21/2021 at 05:11PM

17
#944 - POSIX / @po6ix

01/22/2022 at 03:54PM

17
#945 - vimmac / @vimmac13823

06/14/2023 at 10:06AM

17
#946 - Olivier Bégassat / @zk_evm

06/15/2023 at 01:21PM

17
#947 - KoroneListener / @KoroneListener

09/04/2024 at 01:43PM

17
#948 - Pablo Acuna / @pacuna

11/03/2024 at 10:06PM

18
#949 - Dan Harrington / @Dan1H1

07/31/2013 at 01:32AM

18
#950 - Christopher Green / @cg433n

08/11/2013 at 01:39AM

18
#951 - Seaborn Lee / @SeabornLi

08/13/2013 at 01:51PM

18
#952 - Maksim / @maksimrv

08/26/2013 at 07:58PM

18
#953 - Matty Williams / @matty_jwilliams

08/27/2013 at 09:54AM

18
#954 - Dave Aitken / @actionshrimp

08/27/2013 at 07:17PM

18
#955 - Hachez Floran / @FloranHachez

09/02/2013 at 03:59PM

18
#956 - Andrew Crites / @ExplosionPills

09/11/2013 at 06:38PM

18
#957 - Marcin Katulski / @marcink79

09/26/2013 at 08:28AM

18
#958 - Michael Biebl / @michaelbiebl

09/28/2013 at 03:42PM

18
#959 - Lavkesh / @OloglogN

01/29/2014 at 12:33PM

18
#960 - Billy McCarthy / @reshippie

01/30/2014 at 01:37AM