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
#1651 - Alexander Zheleznov / @ephemerr

08/24/2018 at 04:56AM

14
#1652 - Korgan / @Korgan36725554

08/25/2018 at 04:16PM

14
#1653 - Daniel Vaqueiro / @chimidea

08/26/2018 at 12:29PM

14
#1654 - A Programmer / @hlprogrammer

08/26/2018 at 11:24PM

14
#1655 - Weston Neal / @wtneal

08/31/2018 at 09:41PM

14
#1656 - Jeff / @sir_wiggles3

09/07/2018 at 07:53AM

14
#1657 - DustVoice / @DustVoice

09/10/2018 at 09:35AM

14
#1658 - Nico Kreiling / @NicoKreiling

09/13/2018 at 12:44PM

14
#1659 - Stefan Heyder / @Astheny_

09/17/2018 at 11:30AM

14
#1660 - Brendan B Amdocs / @AmdocsB

09/24/2018 at 02:37PM

14
#1661 - tomason / @kl_tomason

10/03/2018 at 10:17AM

14
#1662 - John Oleksowicz / @JohnOlek

10/05/2018 at 03:05PM

14
#1663 - Christopher Z / @xsthunder

10/17/2018 at 11:49AM

14
#1664 - Jeremy / @jcowgar

10/27/2018 at 05:06AM

14
#1665 - Tom Smeding / @TomSmeding

11/05/2018 at 10:21PM

14
#1666 - Nir Givon / @nir_givon

11/11/2018 at 12:10PM

14
#1667 - Parker Couch / @couch_parker

11/12/2018 at 03:17AM

14
#1668 - Andreas Nordahl / @andreasnordahl

11/14/2018 at 04:56PM

14
#1669 - 황규승 / @l5pBHyytJBu9SIC

11/16/2018 at 03:19PM

14
#1670 - Levi Self / @LeviRSelf

11/18/2018 at 08:38AM

14
#1671 - PJ Frazer / @pj_frazer

11/24/2018 at 08:21PM

14
#1672 - Matze / @ebaharilikult

11/25/2018 at 08:55AM

14
#1673 - Lucas Nussbaum / @LucasNussbaum

11/30/2018 at 10:20PM

14
#1674 - Marten Ringwelski / @Marteon27

12/08/2018 at 06:39PM

14
#1675 - Marty Boren / @beanmaximalist

12/11/2018 at 03:30AM

14
#1676 - sjyu / @sjyu12

12/13/2018 at 02:37AM

14
#1677 - Mike / @xxxx457656455xx

12/13/2018 at 04:34AM

14
#1678 - Théo / @Theodnls

12/17/2018 at 02:17PM

14
#1679 - xwlearn / @ixw1991

12/18/2018 at 05:00PM

14
#1680 - guxbug / @guxbug1

12/19/2018 at 03:24AM