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
#1621 - Benjamin Unger / @Ben_Unger

09/04/2017 at 06:23PM

14
#1622 - Harrison DiStefano / @HarrisonDiStef1

09/21/2017 at 08:24PM

14
#1623 - Matt Rixman / @MattRixman

09/29/2017 at 05:36PM

14
#1624 - Denis Kaluznyy / @Spy_Denis

10/04/2017 at 02:29PM

14
#1625 - Jon Bakies / @jonbakies

10/05/2017 at 02:18PM

14
#1626 - Elton Kamami / @pixel_grid

10/07/2017 at 07:47PM

14
#1627 - Mike Reinhardt / @subitoforte

10/18/2017 at 06:49PM

14
#1628 - Sam Coy / @samthecoy

10/25/2017 at 10:51AM

14
#1629 - Vim Golf / @golf_vim

10/26/2017 at 09:03PM

14
#1630 - Gibson Fahnestock / @gibfahn

10/29/2017 at 07:29PM

14
#1631 - popo5colo / @popo5colo1

10/31/2017 at 03:23AM

14
#1632 - ryuugekisya / @ryuugekisya

11/04/2017 at 02:22AM

14
#1633 - Mike Harris / @MikeMJHarris

11/10/2017 at 07:08PM

14
#1634 - chriscr / @chriscr_cr

11/14/2017 at 09:55PM

14
#1635 - Michele Campeotto / @micampe

11/21/2017 at 03:18AM

14
#1636 - José M. Guisado / @_jmgg_

12/07/2017 at 01:10PM

14
#1637 - Collin Smith / @CollinSmith1990

12/10/2017 at 07:07PM

14
#1638 - Paul Bunch / @gigatesla

12/14/2017 at 05:27PM

14
#1639 - gink / @anagiwa

12/18/2017 at 10:17AM

14
#1640 - Антон Корольков / @Toshegg

12/28/2017 at 09:19AM

14
#1641 - Jack Magnus / @jadomag

12/30/2017 at 01:38PM

14
#1642 - Raghav Mandayam / @raghavmandayam

01/04/2018 at 03:48AM

14
#1643 - umnikos / @umnikos

01/07/2018 at 04:27PM

14
#1644 - TomoHung / @TomoiHung

01/07/2018 at 06:01PM

14
#1645 - Семён Марьясин / @MaryasinS

01/12/2018 at 08:23AM

14
#1646 - SporadicLizard / @sporadiclizard

01/15/2018 at 03:05AM

14
#1647 - John Addams / @JohnAddams19

02/01/2018 at 08:13PM

14
#1648 - die_krabbe / @die_krabbe

02/02/2018 at 09:14AM

14
#1649 - l / @ioio85

02/04/2018 at 03:10AM

14
#1650 - Ilker Mutlu / @ilkermutlu

02/05/2018 at 09:53AM