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

4000 active golfers, 15279 entries

Leaderboard (lowest score wins):
52
#3991 - Larry Adames / @LarryAdames

07/04/2019 at 05:12PM

55
#3992 - Kun-chan / @kurochirochan

03/24/2015 at 12:53AM

57
#3993 - Hugo / @szeyattai

08/05/2018 at 08:10AM

58
#3994 - Douglas Detoni / @douglas_detoni

06/19/2015 at 05:01PM

65
#3995 - Lidiya Ponomareva / @LidiyaPonomare3

12/05/2019 at 06:43PM

65
#3996 - Justin Williams / @DRPEPPERGUY1

01/27/2020 at 07:24PM

66
#3997 - 박주영 / @xhgnVrQ6uUJOTnB

06/29/2018 at 08:35AM

75
#3998 - JerryChiu / @pv31508

08/18/2015 at 02:00PM

88
#3999 - Zac sliker / @Zacsliker

01/29/2020 at 04:05PM

216
#4000 - x / @am_zzz_zzz

05/12/2020 at 07:30AM