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

3811 active golfers, 14504 entries

Leaderboard (lowest score wins):
10
#781 - DoubleIA / @IaDouble

09/30/2018 at 09:52AM

10
#782 - Roger Bongers / @RogerBongers

10/02/2018 at 12:44PM

10
#783 - Will / @VVi11_I_AM

10/02/2018 at 07:54PM

10
#784 - a / @UseForVim

10/03/2018 at 08:01PM

10
#785 - Julian Okuyiga / @julianokuyiga

10/05/2018 at 10:35PM

10
#786 - Taylor Shane Hawkins / @underempire

10/08/2018 at 09:07PM

10
#787 - James LaChance / @FatBoyXPC

10/11/2018 at 08:49AM

10
#788 - Benjamin Kiesl / @BenjaminKiesl

10/11/2018 at 09:32AM

10
#789 - Dima / @Dima88806680

10/14/2018 at 10:57AM

10
#790 - Alejandro Santander / @_ajsantander

10/14/2018 at 01:34PM

10
#791 - Tuomas Jokioja / @TJokioja

10/15/2018 at 01:53PM

10
#792 - DylanYan / @DylanYan117

10/17/2018 at 12:25PM

10
#793 - Dax / @zacoxi

10/22/2018 at 02:42AM

10
#794 - Ole Mussmann / @isbjornlabs

10/28/2018 at 12:53AM

10
#795 - Adam / @askoufish

10/31/2018 at 01:09AM

10
#796 - i33 / @i3342th

11/06/2018 at 07:24AM

10
#797 - Luis Pigueiras / @LPigueiras

11/06/2018 at 12:12PM

10
#798 - Why Am / @WhysDeCatOnFire

11/08/2018 at 03:34AM

10
#799 - ForVimGolfReally / @VimFor

11/09/2018 at 12:00AM

10
#800 - zaperrer / @zaperrer

11/09/2018 at 11:04PM

10
#801 - TW / @tangw

11/12/2018 at 02:59AM

10
#802 - 905garlicjack / @905garlicjack

11/16/2018 at 02:08PM

10
#803 - 永森 / @nagk05

11/18/2018 at 09:45AM

10
#804 - Jonas Weber / @thriqon

11/23/2018 at 09:31PM

10
#805 - Jonathan Cabezas / @John_Harkan

11/26/2018 at 06:12PM

10
#806 - Anant Mishra / @anantanni22

11/30/2018 at 09:11AM

10
#807 - Maas Lalani / @maaslalani

12/02/2018 at 11:43PM

10
#808 - 张君杰 / @MYHQlDfwOuLvlGf

12/03/2018 at 03:00AM

10
#809 - shw / @shw30127562

12/05/2018 at 06:51AM

10
#810 - Ruby Sapphire / @RubySapphire20

12/14/2018 at 03:47AM