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
#1681 - David Sweetman / @d_sweetman

07/02/2018 at 01:28AM

14
#1682 - Alej / @mephl

07/02/2018 at 05:07AM

14
#1683 - steph-query / @StephQuery

07/19/2018 at 12:45AM

14
#1684 - Koo Zhengqun / @zhengqunkoo

07/27/2018 at 08:05AM

14
#1685 - Alex Brasser / @Alex_Brasser

07/31/2018 at 02:08PM

14
#1686 - Hunter Tidwell / @hunter2tidwell

08/01/2018 at 12:53AM

14
#1687 - chaotic / @laersn

08/02/2018 at 01:09PM

14
#1688 - Foo Bar / @FooBarely

08/03/2018 at 03:06PM

14
#1689 - Theo Andersen Carton / @TheoAndersen

08/07/2018 at 06:41PM

14
#1690 - Akira Matsuda / @a_matsuda

08/15/2018 at 06:43AM

14
#1691 - Praful / @praful_kapadia

08/16/2018 at 04:50PM

14
#1692 - Charles Sun / @charles_sun90

08/17/2018 at 03:15PM

14
#1693 - Тёма / @Timon_Surikat

08/18/2018 at 11:50PM

14
#1694 - Alexander Zheleznov / @ephemerr

08/24/2018 at 04:56AM

14
#1695 - Korgan / @Korgan36725554

08/25/2018 at 04:16PM

14
#1696 - Daniel Vaqueiro / @chimidea

08/26/2018 at 12:29PM

14
#1697 - A Programmer / @hlprogrammer

08/26/2018 at 11:24PM

14
#1698 - Weston Neal / @wtneal

08/31/2018 at 09:41PM

14
#1699 - Jeff / @sir_wiggles3

09/07/2018 at 07:53AM

14
#1700 - DustVoice / @DustVoice

09/10/2018 at 09:35AM

14
#1701 - Nico Kreiling / @NicoKreiling

09/13/2018 at 12:44PM

14
#1702 - Stefan Heyder / @Astheny_

09/17/2018 at 11:30AM

14
#1703 - Brendan B Amdocs / @AmdocsB

09/24/2018 at 02:37PM

14
#1704 - tomason / @kl_tomason

10/03/2018 at 10:17AM

14
#1705 - John Oleksowicz / @JohnOlek

10/05/2018 at 03:05PM

14
#1706 - Christopher Z / @xsthunder

10/17/2018 at 11:49AM

14
#1707 - Jeremy / @jcowgar

10/27/2018 at 05:06AM

14
#1708 - Tom Smeding / @TomSmeding

11/05/2018 at 10:21PM

14
#1709 - Nir Givon / @nir_givon

11/11/2018 at 12:10PM

14
#1710 - Parker Couch / @couch_parker

11/12/2018 at 03:17AM