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
#1681 - Marcio M Pereira / @iviarcio

12/21/2018 at 02:44PM

14
#1682 - TimMcGuire / @mcguire

12/22/2018 at 03:23PM

14
#1683 - Sebastien Nicoud / @sebnukem

12/23/2018 at 12:50AM

14
#1684 - Nikos Koukis / @bergercookie12

01/03/2019 at 05:28PM

14
#1685 - Brome / @Brome20887421

01/04/2019 at 09:40PM

14
#1686 - pankaj singh / @pankajsingh013

01/11/2019 at 04:20PM

14
#1687 - wrglprmft / @wrglprmft

01/19/2019 at 09:04PM

14
#1688 - 강현 / @Applesquiz

01/20/2019 at 11:13PM

14
#1689 - Daniel Steinberg / @dstein64

01/28/2019 at 04:27AM

14
#1690 - churaki / @churaki

01/29/2019 at 03:49PM

14
#1691 - Adrien Plaçais / @AdrienPlcs

01/31/2019 at 12:02PM

14
#1692 - Rasmus Bergström / @JRasmusBm

02/02/2019 at 04:43PM

14
#1693 - Michael Aquilina / @mikeaquilina4

02/02/2019 at 09:18PM

14
#1694 - Mac Goever / @MacGoever

02/04/2019 at 09:17PM

14
#1695 - ieranstoiranstyu32npoierasnt / @ieranstoiranst1

02/08/2019 at 06:54PM

14
#1696 - Christopher Weyand / @swordman378

02/11/2019 at 02:05PM

14
#1697 - ahm4711 / @ahm4711

03/01/2019 at 03:20PM

14
#1698 - Chris AtLee / @chrisatlee

03/01/2019 at 10:14PM

14
#1699 - Lachlan Easton / @LBEaston

03/03/2019 at 01:23AM

14
#1700 - throwaway / @throwaw77650361

03/05/2019 at 07:33PM

14
#1701 - No Not / @NoNot44894988

03/11/2019 at 08:55PM

14
#1702 - OldBoy / @geirola

03/12/2019 at 12:01PM

14
#1703 - james_bunch / @james_bunch

03/13/2019 at 06:43AM

14
#1704 - James Perry Hartman / @JauntyJPH

03/19/2019 at 11:35AM

14
#1705 - Parsa Amini / @ParsaAmini

03/19/2019 at 04:03PM

14
#1706 - Louie / @LouieShepDog

03/31/2019 at 08:23PM

14
#1707 - Herman Stavelin / @HsBruker

04/05/2019 at 03:16PM

14
#1708 - Correct Battery Horse / @horse_battery

04/14/2019 at 12:49PM

14
#1709 - Remy Oudemans / @OudemansRemy

04/15/2019 at 10:05PM

14
#1710 - Magnus Israel / @Mangust1

04/16/2019 at 06:53PM