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
#1741 - Drew Gottlieb / @Drew_Gottlieb

07/20/2019 at 05:57AM

14
#1742 - Clint Caudle / @ClintCaudle

07/22/2019 at 07:15PM

14
#1743 - Percelot / @percelot

07/24/2019 at 02:22PM

14
#1744 - Matt Vaughn / @mattttvaughn

07/29/2019 at 12:48AM

14
#1745 - Himavanth Reddy / @Himavanth1909

07/29/2019 at 10:07AM

14
#1746 - Colby Brown / @colbyabrown

07/30/2019 at 03:23PM

14
#1747 - Pittson / @Pittson95

07/31/2019 at 04:33PM

14
#1748 - Hampus HAUFFMAN / @HampusHauffman

08/05/2019 at 10:47AM

14
#1749 - John Contad! / @JohnContad

08/08/2019 at 05:49AM

14
#1750 - Hayden Wang / @HaydenWang2

08/09/2019 at 01:05AM

14
#1751 - couaber / @couaber

08/10/2019 at 01:50PM

14
#1752 - Alexander Dikelsky / @ADikelsky

08/24/2019 at 11:39PM

14
#1753 - お-せ-よ- / @OhSayYo

08/26/2019 at 10:24PM

14
#1754 - sundeep routhu / @sundeep12005

08/31/2019 at 08:49AM

14
#1755 - Adam Anderson / @EspressoCoder

09/05/2019 at 02:30PM

14
#1756 - Gunnar Thoreson / @ThReGgOn

09/06/2019 at 06:46AM

14
#1757 - BESSENG A IREH Guy / @guybesseng

09/06/2019 at 01:45PM

14
#1758 - Ralph / @Ralph59017303

09/08/2019 at 09:35AM

14
#1759 - Thomas Edlich / @grumpybavarian

09/28/2019 at 12:06PM

14
#1760 - Howl / @Howlxx55

10/08/2019 at 02:22PM

14
#1761 - dahan / @dahan74265266

10/09/2019 at 05:03AM

14
#1762 - Jonathan Medwig / @jmedwig

10/11/2019 at 02:16PM

14
#1763 - Nick Yeow / @nickyeow

10/19/2019 at 01:45PM

14
#1764 - Alex Schultz / @Pumpkinhead002

10/23/2019 at 08:31PM

14
#1765 - Henry Hey / @mj0lnir

10/25/2019 at 12:26PM

14
#1766 - vicver09 / @vicver091

10/25/2019 at 04:40PM

14
#1767 - Alex Emelianov / @AlexEmelianov3

10/26/2019 at 12:37AM

14
#1768 - Gregory Furter / @gfurter

10/27/2019 at 10:54AM

14
#1769 - rr / @rodgeur31

10/28/2019 at 10:55PM

14
#1770 - Andrew Naoum / @anaoum

11/04/2019 at 11:03PM