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):
14
#1711 - Rand Omperson / @197258444

04/17/2019 at 06:45PM

14
#1712 - mag1cal.unic0rn / @unic0rn_mag1cal

04/18/2019 at 10:27AM

14
#1713 - Pratik / @prathik_t

04/19/2019 at 05:42AM

14
#1714 - Gitsnik / @dracyrys

04/19/2019 at 07:07AM

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

04/25/2019 at 02:27AM

14
#1716 - Izaak van Dongen / @goedel_gang

04/27/2019 at 11:42PM

14
#1717 - Sherab Giovannini / @shaddycls

05/01/2019 at 02:41PM

14
#1718 - eric huang / @EricGodhand4826

05/04/2019 at 05:58PM

14
#1719 - Quinn Collins / @Quinn00239061

05/06/2019 at 08:11PM

14
#1720 - yipcyj / @yipcyj

05/07/2019 at 01:03PM

14
#1721 - Arno / @arnoxmp

05/08/2019 at 05:00PM

14
#1722 - test / @test35595941

05/09/2019 at 07:22PM

14
#1723 - vimgolfer24271 / @vimgolfer24271

05/13/2019 at 06:52AM

14
#1724 - Fiffy / @sr21486642

05/14/2019 at 07:30AM

14
#1725 - arsi arola / @mos_kiitto

05/15/2019 at 02:30PM

14
#1726 - 谢志文 / @BZCtUASDnHVVof5

05/20/2019 at 12:44PM

14
#1727 - Damian Rodriguez / @damianrr

05/25/2019 at 01:44PM

14
#1728 - aggums / @touhoueurobeat

05/26/2019 at 05:23AM

14
#1729 - Jason Liang / @bummerjacket

05/27/2019 at 12:06AM

14
#1730 - shaz / @shaz30307204

05/28/2019 at 08:28AM

14
#1731 - version 34.053a / @Age_of_machines

05/29/2019 at 02:14PM

14
#1732 - Arthamys / @arthamys

06/03/2019 at 11:58AM

14
#1733 - a60068 / @a60068

06/06/2019 at 09:00AM

14
#1734 - Johannes / @joka253

06/06/2019 at 02:59PM

14
#1735 - Erik Lindeborg / @ErikLindeborg

06/07/2019 at 05:32PM

14
#1736 - Hugo Tai / @HugoTai100

06/11/2019 at 05:14AM

14
#1737 - Magnus Bjuvensjö / @mbjuvensjo

06/11/2019 at 09:30PM

14
#1738 - Frank Harrison / @doublethefish

06/16/2019 at 11:55AM

14
#1739 - hodenkobold66 / @hodenkobold66

06/23/2019 at 11:39AM

14
#1740 - ixf / @ixfdv

07/05/2019 at 07:42PM