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
#1591 - chriscr / @chriscr_cr

11/14/2017 at 09:55PM

14
#1592 - Michele Campeotto / @micampe

11/21/2017 at 03:18AM

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

12/07/2017 at 01:10PM

14
#1594 - Collin Smith / @CollinSmith1990

12/10/2017 at 07:07PM

14
#1595 - Paul Bunch / @gigatesla

12/14/2017 at 05:27PM

14
#1596 - gink / @anagiwa

12/18/2017 at 10:17AM

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

12/28/2017 at 09:19AM

14
#1598 - Jack Magnus / @jadomag

12/30/2017 at 01:38PM

14
#1599 - Raghav Mandayam / @raghavmandayam

01/04/2018 at 03:48AM

14
#1600 - umnikos / @umnikos

01/07/2018 at 04:27PM

14
#1601 - TomoHung / @TomoiHung

01/07/2018 at 06:01PM

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

01/12/2018 at 08:23AM

14
#1603 - SporadicLizard / @sporadiclizard

01/15/2018 at 03:05AM

14
#1604 - John Addams / @JohnAddams19

02/01/2018 at 08:13PM

14
#1605 - die_krabbe / @die_krabbe

02/02/2018 at 09:14AM

14
#1606 - l / @ioio85

02/04/2018 at 03:10AM

14
#1607 - Ilker Mutlu / @ilkermutlu

02/05/2018 at 09:53AM

14
#1608 - Josu Oyanguren / @josuoyanguren

02/05/2018 at 07:42PM

14
#1609 - steph / @brittiskt

02/13/2018 at 01:28PM

14
#1610 - mephory / @mephory

02/14/2018 at 11:30PM

14
#1611 - neopulsar / @_neopulsar_

02/15/2018 at 03:56AM

14
#1612 - Felix Boers / @felixboers

02/18/2018 at 09:42AM

14
#1613 - Alex Chalk / @alexchalk17

03/09/2018 at 04:21AM

14
#1614 - Vim Golfer / @vimgolfing

03/16/2018 at 05:08PM

14
#1615 - Alec Goebel / @bewarethegrue

03/23/2018 at 08:52PM

14
#1616 - Daniel / @0x9ABC

03/24/2018 at 12:05PM

14
#1617 - Dan Schaefer / @lieutdan13

03/30/2018 at 04:40PM

14
#1618 - Михаил Фуфин / @MishaFufin

03/30/2018 at 08:36PM

14
#1619 - Takaaki Onishi / @takaaki024

03/31/2018 at 11:31AM

14
#1620 - Ted Carlsson / @TedCarlsson

03/31/2018 at 04:45PM