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

3799 active golfers, 14449 entries

Leaderboard (lowest score wins):
30
#3721 - Austin / @Austin57093958

01/22/2020 at 12:44AM

30
#3722 - Logan Dolechek / @LoganDolechek

01/23/2020 at 10:47PM

30
#3723 - Ransom Bowman / @BowmanRansom

01/31/2020 at 01:33AM

30
#3724 - Connor / @robotboy_69

01/31/2020 at 03:11AM

30
#3725 - Shivang Tripathi / @shivx

04/26/2020 at 07:22AM

30
#3726 - James Dermelj / @JamesDermelj

05/02/2020 at 05:07PM

30
#3727 - Ankur Singh / @I_ankursingh

05/08/2020 at 01:38PM

31
#3728 - Joël Christ / @jjlchrist

11/17/2016 at 01:01PM

31
#3729 - Barespamtak / @barespamtak

09/06/2017 at 08:41AM

31
#3730 - sol bloch / @Noogie13

02/23/2018 at 03:07PM

31
#3731 - Fabian Bull / @peri4n

01/28/2019 at 12:02AM

31
#3732 - sloppypapi / @sloppypapi5

02/19/2019 at 06:43PM

31
#3733 - Ben Lowbridge / @kylar102

10/12/2019 at 12:11AM

31
#3734 - Maximilian Kurthen / @MaxKurthen

11/25/2019 at 09:35AM

31
#3735 - Ben Guericke / @ben_guericke

01/22/2020 at 04:22PM

31
#3736 - TriCierraTops / @CierraWallin

01/30/2020 at 01:25AM

31
#3737 - Norhan Abbas / @NorhanAbbas4

01/31/2020 at 11:12PM

31
#3738 - 0x750x730x650x720x6e0x610x6d0x65 / @0x900x900x90

04/11/2020 at 06:19PM

32
#3739 - Ryota / @No_1_LION

11/20/2014 at 04:23AM

32
#3740 - T Leininger / @TLein4

01/27/2015 at 03:59AM

32
#3741 - Chris Trott / @TwoCentStudios

04/03/2015 at 07:04PM

32
#3742 - Lemuel Casanova / @LemmyMC

05/06/2015 at 12:42AM

32
#3743 - Chris Grantham / @crgrantham

11/12/2015 at 06:35PM

32
#3744 - Guillem Palou / @guillempalou

03/06/2018 at 10:17AM

32
#3745 - Bram / @Bram__Janssen

12/07/2019 at 01:14PM

33
#3746 - Чупраков Сергей / @sergeyzsg

11/24/2014 at 09:05AM

33
#3747 - Zeeshan Jan / @zeeshanjan82

01/24/2015 at 06:26AM

33
#3748 - Lucien Ng / @LucienNg1

03/22/2016 at 04:19PM

33
#3749 - GAUTAM V NAIK / @gautamnaik1994

08/24/2019 at 10:59AM

33
#3750 - Carl Smestad / @CarlSmes

03/30/2020 at 05:49PM