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

3922 active golfers, 14974 entries

Leaderboard (lowest score wins):
14
#1741 - Lachlan Easton / @LBEaston

03/03/2019 at 01:23AM

14
#1742 - throwaway / @throwaw77650361

03/05/2019 at 07:33PM

14
#1743 - No Not / @NoNot44894988

03/11/2019 at 08:55PM

14
#1744 - OldBoy / @geirola

03/12/2019 at 12:01PM

14
#1745 - james_bunch / @james_bunch

03/13/2019 at 06:43AM

14
#1746 - James Perry Hartman / @JauntyJPH

03/19/2019 at 11:35AM

14
#1747 - Parsa Amini / @ParsaAmini

03/19/2019 at 04:03PM

14
#1748 - Louie / @LouieShepDog

03/31/2019 at 08:23PM

14
#1749 - Herman Stavelin / @HsBruker

04/05/2019 at 03:16PM

14
#1750 - Correct Battery Horse / @horse_battery

04/14/2019 at 12:49PM

14
#1751 - Remy Oudemans / @OudemansRemy

04/15/2019 at 10:05PM

14
#1752 - Magnus Israel / @Mangust1

04/16/2019 at 06:53PM

14
#1753 - Rand Omperson / @197258444

04/17/2019 at 06:45PM

14
#1754 - mag1cal.unic0rn / @unic0rn_mag1cal

04/18/2019 at 10:27AM

14
#1755 - Pratik / @prathik_t

04/19/2019 at 05:42AM

14
#1756 - Gitsnik / @dracyrys

04/19/2019 at 07:07AM

14
#1757 - Michaël Lévesque-Dion / @mlevesquedion

04/25/2019 at 02:27AM

14
#1758 - Izaak van Dongen / @goedel_gang

04/27/2019 at 11:42PM

14
#1759 - Sherab Giovannini / @shaddycls

05/01/2019 at 02:41PM

14
#1760 - eric huang / @EricGodhand4826

05/04/2019 at 05:58PM

14
#1761 - Quinn Collins / @Quinn00239061

05/06/2019 at 08:11PM

14
#1762 - yipcyj / @yipcyj

05/07/2019 at 01:03PM

14
#1763 - Arno / @arnoxmp

05/08/2019 at 05:00PM

14
#1764 - test / @test35595941

05/09/2019 at 07:22PM

14
#1765 - vimgolfer24271 / @vimgolfer24271

05/13/2019 at 06:52AM

14
#1766 - Fiffy / @sr21486642

05/14/2019 at 07:30AM

14
#1767 - arsi arola / @mos_kiitto

05/15/2019 at 02:30PM

14
#1768 - 谢志文 / @BZCtUASDnHVVof5

05/20/2019 at 12:44PM

14
#1769 - Damian Rodriguez / @damianrr

05/25/2019 at 01:44PM

14
#1770 - aggums / @touhoueurobeat

05/26/2019 at 05:23AM