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

3919 active golfers, 14960 entries

Leaderboard (lowest score wins):
16
#2551 - Manish Baghel / @ManishBaghelz

05/14/2020 at 09:04AM

16
#2552 - pady. πŸ‡ͺπŸ‡Ί πŸ‡©πŸ‡ͺ πŸ‡·πŸ‡΄ / @hundertzwoelf_

05/20/2020 at 03:11PM

16
#2553 - Noxium / @NNNoxium

05/27/2020 at 12:16AM

16
#2554 - Valdimar / @genkobar

05/28/2020 at 09:20PM

16
#2555 - Deepak Talan / @d02d33pak

07/03/2020 at 11:00AM

16
#2556 - Marc8888 / @8888Marc

07/04/2020 at 03:08PM

16
#2557 - f00zz / @f00zz_

07/06/2020 at 11:25PM

16
#2558 - Theo πŸ™Š / @Theodonal

07/23/2020 at 08:45PM

16
#2559 - Mislav Vuletić / @MasterGeeMedo

07/26/2020 at 01:51PM

16
#2560 - γ—γ‚‡γƒΌγ˜ / @shoji_4423

07/31/2020 at 06:43AM

16
#2561 - ぼとぼと / @boto_voto

07/31/2020 at 06:02PM

16
#2562 - Max Minaev / @max_minaev11

08/05/2020 at 07:14PM

16
#2563 - Martin Kauppinen / @MartinKauppinen

08/15/2020 at 09:35AM

16
#2564 - Pat Haggerty / @HaggertyPat

08/24/2020 at 01:48PM

16
#2565 - Robert Verst / @r_verst

09/01/2020 at 01:41PM

17
#2566 - Ravi S Sinha / @ambidextrousTx

11/12/2014 at 06:11AM

17
#2567 - Dmitry Teslenko / @krab_mozga

11/12/2014 at 08:54AM

17
#2568 - Vivus Ignis / @vivus_ignis

11/15/2014 at 07:30PM

17
#2569 - Michael Bruce / @mikepjb

11/16/2014 at 12:24AM

17
#2570 - Andrew DeMaio / @ademaio92

11/16/2014 at 08:10PM

17
#2571 - Ben Bonfil / @benbonfil

11/16/2014 at 08:46PM

17
#2572 - Federico Ramirez / @gosukiwi

11/17/2014 at 03:16PM

17
#2573 - Aldo Utrera / @aldoutrera

11/19/2014 at 05:06PM

17
#2574 - Alexandre Jouandin / @Allezxandre

11/19/2014 at 07:53PM

17
#2575 - AA / @stonewareslord

11/26/2014 at 08:05PM

17
#2576 - Filipe Dias-L. / @sockyrc

12/06/2014 at 09:59AM

17
#2577 - Jonathan Geddes / @j_gds

12/07/2014 at 04:07AM

17
#2578 - Merrick Christensen / @iammerrick

12/07/2014 at 05:08AM

17
#2579 - Larry Boltovskoi / @larrybolt

12/09/2014 at 01:17AM

17
#2580 - Aidan Kane / @aidos

12/10/2014 at 02:28PM