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

3921 active golfers, 14971 entries

Leaderboard (lowest score wins):
14
#1771 - Jason Liang / @bummerjacket

05/27/2019 at 12:06AM

14
#1772 - shaz / @shaz30307204

05/28/2019 at 08:28AM

14
#1773 - version 34.053a / @Age_of_machines

05/29/2019 at 02:14PM

14
#1774 - Arthamys / @arthamys

06/03/2019 at 11:58AM

14
#1775 - a60068 / @a60068

06/06/2019 at 09:00AM

14
#1776 - Johannes / @joka253

06/06/2019 at 02:59PM

14
#1777 - Erik Lindeborg / @ErikLindeborg

06/07/2019 at 05:32PM

14
#1778 - Hugo Tai / @HugoTai100

06/11/2019 at 05:14AM

14
#1779 - Magnus Bjuvensjö / @mbjuvensjo

06/11/2019 at 09:30PM

14
#1780 - Frank Harrison / @doublethefish

06/16/2019 at 11:55AM

14
#1781 - hodenkobold66 / @hodenkobold66

06/23/2019 at 11:39AM

14
#1782 - ixf / @ixfdv

07/05/2019 at 07:42PM

14
#1783 - Drew Gottlieb / @Drew_Gottlieb

07/20/2019 at 05:57AM

14
#1784 - Clint Caudle / @ClintCaudle

07/22/2019 at 07:15PM

14
#1785 - Percelot / @percelot

07/24/2019 at 02:22PM

14
#1786 - Matt Vaughn / @mattttvaughn

07/29/2019 at 12:48AM

14
#1787 - Himavanth Reddy / @Himavanth1909

07/29/2019 at 10:07AM

14
#1788 - Colby Brown / @colbyabrown

07/30/2019 at 03:23PM

14
#1789 - Pittson / @Pittson95

07/31/2019 at 04:33PM

14
#1790 - Hampus HAUFFMAN / @HampusHauffman

08/05/2019 at 10:47AM

14
#1791 - John Contad! / @JohnContad

08/08/2019 at 05:49AM

14
#1792 - Hayden Wang / @HaydenWang2

08/09/2019 at 01:05AM

14
#1793 - couaber / @couaber

08/10/2019 at 01:50PM

14
#1794 - Alexander Dikelsky / @ADikelsky

08/24/2019 at 11:39PM

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

08/26/2019 at 10:24PM

14
#1796 - sundeep routhu / @sundeep12005

08/31/2019 at 08:49AM

14
#1797 - Adam Anderson / @EspressoCoder

09/05/2019 at 02:30PM

14
#1798 - Gunnar Thoreson / @ThReGgOn

09/06/2019 at 06:46AM

14
#1799 - BESSENG A IREH Guy / @guybesseng

09/06/2019 at 01:45PM

14
#1800 - Ralph / @Ralph59017303

09/08/2019 at 09:35AM