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

3919 active golfers, 14960 entries

Leaderboard (lowest score wins):
17
#2851 - pränki / @prankousky

04/27/2019 at 11:39AM

17
#2852 - Frede Emil / @Frede_Eb

05/05/2019 at 01:54PM

17
#2853 - chihiro / @chihiro0940

05/09/2019 at 01:29PM

17
#2854 - nvb46c74f8ih / @nvb46c74f8ih

05/12/2019 at 01:50PM

17
#2855 - JonasS / @jonas42s

05/29/2019 at 09:49AM

17
#2856 - John Christensen / @Johnnyc1423

06/06/2019 at 05:02PM

17
#2857 - duyanh.y4n.pham / @PhamY4n

06/11/2019 at 02:44PM

17
#2858 - Andy Gnias / @GniTheSciGuy

06/24/2019 at 01:18AM

17
#2859 - Aurel / @AurelienFebvre

06/24/2019 at 07:52PM

17
#2860 - Chester Yap / @Chest_ErYap

07/06/2019 at 11:33PM

17
#2861 - Crystal L / @Cartsly

07/13/2019 at 08:20PM

17
#2862 - grantopher orange / @grantopher

07/22/2019 at 10:54PM

17
#2863 - André Reigoto / @AndreReigoto

08/09/2019 at 12:25AM

17
#2864 - Brian Li / @BriungRi

08/09/2019 at 06:25PM

17
#2865 - Mike Hourahine / @mhourahine

08/11/2019 at 10:19PM

17
#2866 - vim_ninja / @NinjaVim

08/19/2019 at 03:54AM

17
#2867 - Christian / @paierlep

08/31/2019 at 07:43PM

17
#2868 - Jun Isaji / @Jisaji

09/04/2019 at 05:59PM

17
#2869 - lucca augusto / @LuccaAugusto6

09/08/2019 at 02:13PM

17
#2870 - Max Williams / @notmaxbutmax

10/15/2019 at 11:05PM

17
#2871 - Homo Ludens / @BsMainly

10/17/2019 at 02:15PM

17
#2872 - Dodge Coates / @coates_dodge

10/20/2019 at 11:25PM

17
#2873 - John Herman Schwit / @JohnHermanSchwi

11/01/2019 at 12:19AM

17
#2874 - fewfold / @fewfold

11/06/2019 at 01:10AM

17
#2875 - Magnus / @praktiskt

11/17/2019 at 06:01PM

17
#2876 - Scott Myц / @ScottMuc

11/26/2019 at 05:08PM

17
#2877 - Mike Deakin / @Mick_Deak

11/28/2019 at 03:53PM

17
#2878 - l4cr0ss / @l4cr0ss

12/19/2019 at 08:53PM

17
#2879 - tetstest / @tetstest4

12/24/2019 at 02:04PM

17
#2880 - 鏡崎ましろ / @KagamisakiMsr

12/26/2019 at 08:24AM