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

3803 active golfers, 14465 entries

Leaderboard (lowest score wins):
28
#3691 - Alex / @SasjaPollyWog

04/14/2018 at 12:51PM

28
#3692 - Pablo Orduna / @OrdunaPablo

05/12/2018 at 03:23PM

28
#3693 - touilleMan / @touilleMan

07/29/2018 at 11:32PM

28
#3694 - faraaz / @mfyk84

08/19/2018 at 09:05PM

28
#3695 - Brandon Hops / @BrandonHops

09/29/2018 at 05:33PM

28
#3696 - dogmeat / @dogmeat11

10/23/2018 at 01:43PM

28
#3697 - Nebula / @Nebula62997188

10/26/2018 at 06:48AM

28
#3698 - Robert Xu / @RobertX97592288

11/29/2018 at 01:18AM

28
#3699 - zkunsang / @zkunsang

04/14/2019 at 01:55PM

28
#3700 - Matador Funkmann / @MFunkmann

05/15/2019 at 04:33PM

28
#3701 - Patrick / @Pattywack18

01/03/2020 at 12:14PM

28
#3702 - Mance Rayder / @AlexAckerlund

01/21/2020 at 07:36PM

28
#3703 - Goldfish™ / @ImAGoldenFish

01/27/2020 at 10:28PM

28
#3704 - Li-Kai Wu / @likaiwuDev

05/25/2020 at 07:42AM

28
#3705 - Michael V. / @mvivirito

06/11/2020 at 10:04PM

29
#3706 - lonerr / @LonerrOleg

11/22/2015 at 12:22AM

29
#3707 - Saygus / @Saygus_GTA

05/16/2017 at 10:46AM

29
#3708 - Andrew Sz / @RoboAndy

07/01/2017 at 09:59AM

29
#3709 - Alberto Costa / @a_costa_txt

12/21/2018 at 12:27AM

29
#3710 - Chloe Ransom / @cransom12

03/08/2019 at 01:18PM

29
#3711 - mirsemen / @mirsemen1

07/14/2019 at 04:18PM

29
#3712 - Андрій Капінос / @ZetwayGhost

10/26/2019 at 10:43AM

29
#3713 - Ross McBride / @RossHereSince93

11/26/2019 at 05:03PM

29
#3714 - Some Name / @spamintosh

11/28/2019 at 10:19PM

29
#3715 - Philip McHugh / @PhilipMcHugh_IE

12/06/2019 at 06:06PM

29
#3716 - Sergio Soares / @sergsoares

04/21/2020 at 10:07PM

29
#3717 - Ved Verma / @dearved

05/31/2020 at 11:14PM

30
#3718 - Chris Baker / @dosman711

06/24/2015 at 12:57PM

30
#3719 - Gabriele Sani / @gabriele_sani

01/14/2016 at 09:12AM

30
#3720 - Suphawit Getmark / @SGetmark

10/09/2017 at 04:02PM