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

3806 active golfers, 14477 entries

Leaderboard (lowest score wins):
10
#841 - 🅷🅰🆁🆁🆈 / @HarryAAbrahams1

03/20/2019 at 06:44PM

10
#842 - Unfair / @ItIsUnfair

03/24/2019 at 08:59PM

10
#843 - Andrew Frauens / @FrownMoore

03/25/2019 at 05:17AM

10
#844 - Raul / @Raul50174499

03/27/2019 at 03:11AM

10
#845 - Maximilian F. / @TheMaex

03/30/2019 at 02:22AM

10
#846 - . / @fislaqq

03/31/2019 at 12:21AM

10
#847 - Michael Elias / @mikowl

04/02/2019 at 06:24PM

10
#848 - Dryvnt / @Dryvnt

04/04/2019 at 12:50PM

10
#849 - Jonas / @ex1c

04/11/2019 at 12:01PM

10
#850 - her / @her35520005

04/11/2019 at 06:25PM

10
#851 - alekfed / @alek_fed

04/14/2019 at 01:09PM

10
#852 - Lewis Guignard / @LewisGuignard

04/16/2019 at 01:36PM

10
#853 - john ford / @johnfor65634499

04/18/2019 at 04:24PM

10
#854 - (っ=﹏=c) .。o○ / @itchyny

04/22/2019 at 08:51AM

10
#855 - Peter Dolan / @PeterDo76228680

04/25/2019 at 09:20PM

10
#856 - 김현수 / @flyhigh43

04/27/2019 at 05:44PM

10
#857 - ImaNotgate / @INotgate

04/28/2019 at 02:37AM

10
#858 - Kai.Li / @KaiLi19

04/28/2019 at 04:32AM

10
#859 - andysong / @suyangsong

05/14/2019 at 08:59PM

10
#860 - Daniel Hakimian / @danrafhak

05/14/2019 at 10:30PM

10
#861 - Elcio Ferreira / @elcio

05/15/2019 at 03:34AM

10
#862 - David McDonald / @dmcdona

05/15/2019 at 11:33PM

10
#863 - tynanguerra / @tynanguerra

05/16/2019 at 06:33PM

10
#864 - ow / @ow34480012

05/19/2019 at 12:49PM

10
#865 - Christian Nieves / @ctnieves_

05/20/2019 at 05:50AM

10
#866 - popexizhi / @popexizhi

05/24/2019 at 05:58AM

10
#867 - maximilian / @maximil61408276

05/24/2019 at 07:01PM

10
#868 - Seunghun Lee / @earlbread

05/27/2019 at 01:43PM

10
#869 - sitadivon / @sitadivon1

05/29/2019 at 03:32AM

10
#870 - Miłosz Łakomy / @foobar01123

05/29/2019 at 04:41AM