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 5462e3f41198b80002512673

I forgot quotes

Oops.

Start file
foo = a
      ab
      abc
End file
foo = "a"
      "ab"
      "abc"

View Diff

1,3c1,3
< foo = a
<       ab
<       abc
---
> foo = "a"
>       "ab"
>       "abc"

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 3963 remaining solutions by signing in and submitting your own entry
#3964 x / @am_zzz_zzz - Score: 216 - 05/12/20 @ 07:30
llllllciw''<Esc>pjhlhciw''<Esc>pjhciw''<Esc>pkjuuuuuuciw'<C-R><C-O>"<C-H>"'<Esc>jjhciw'<C-R><C-O>"'<Esc>khhhlll.kh.jjhhvi'hluuuuuujjjlciw'<C-R><C-O>"'<Esc>ul.k.k.jjj:reg<CR>quuuuuukkv<Esc><Esc><C-V>jj:<Esc><Esc><Esc><Esc><Esc>jqk<C-V>jj:norm i'<C-V><Esc>A'<CR>khhhullllll<C-V>jjk<Esc>kciw"<Esc>pa"<Esc>uuujukkjlhkqaciw""<Esc>hpqj@aj@a:wq<CR>

0 comments


Created by: @udioica

3964 active golfers, 15145 entries

Leaderboard (lowest score wins):
18
#3181 - Greg Anders / @gregory_anders

03/07/2019 at 07:10PM

18
#3182 - DanSnow / @dododavid006

03/08/2019 at 05:50AM

18
#3183 - Adam Procio / @AdamProcio

03/30/2019 at 05:35PM

18
#3184 - Matteo / @Matteo_Mer

04/04/2019 at 11:02PM

18
#3185 - royaso / @royaso

04/12/2019 at 06:50AM

18
#3186 - Lusington / @Lusington

04/24/2019 at 06:14PM

18
#3187 - EliTheCoder / @elithecoder

04/29/2019 at 11:53PM

18
#3188 - John Mathews / @johnmathews

05/13/2019 at 02:58PM

18
#3189 - regsdev / @regsdev

05/17/2019 at 08:58PM

18
#3190 - Michael Loescher / @LoescherMichael

05/30/2019 at 08:45AM

18
#3191 - Sam Doiron / @Conlectus

06/23/2019 at 01:40AM

18
#3192 - Matt Donahoe / @mdonahoe

07/21/2019 at 07:56AM

18
#3193 - Captain Proton / @CaptainProton5

08/01/2019 at 02:03PM

18
#3194 - Adrien / @beudbeud

08/09/2019 at 08:01PM

18
#3195 - Fritz Inf / @6360info

08/17/2019 at 08:34AM

18
#3196 - theBecwar / @thebecwar

08/18/2019 at 12:43PM

18
#3197 - Charlie Pai / @charlie_pai

08/22/2019 at 11:07PM

18
#3198 - Nicolas 👨‍💻🇨🇦 / @martinni39

08/27/2019 at 08:40PM

18
#3199 - Ivan / @SpiritHNTR

08/30/2019 at 06:31PM

18
#3200 - 홍순우 / @eU9gM5Bvtj1UNpc

09/01/2019 at 11:49AM

18
#3201 - npo / @npo19645133

09/11/2019 at 09:21PM

18
#3202 - Juan Francisco Bertona / @Weed1an

10/11/2019 at 11:10AM

18
#3203 - ENSORIZATION / @ensorization

11/01/2019 at 11:06PM

18
#3204 - Max Coplan / @mchcopl

11/04/2019 at 12:00AM

18
#3205 - damien / @GreatTestyTest

11/10/2019 at 09:42PM

18
#3206 - David / @dalbertom

12/01/2019 at 05:17PM

18
#3207 - Jason Birchall / @jsonBirchall

12/14/2019 at 10:55AM

18
#3208 - johan wester / @wester87

12/17/2019 at 09:59PM

18
#3209 - Victor Chen / @VictorC89422342

01/07/2020 at 09:45PM

18
#3210 - 5m0r14x / @5m0r14x

01/10/2020 at 10:08PM