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):
17
#2731 - Sam Knight / @samknight

05/01/2017 at 09:10PM

17
#2732 - brucesnyder / @brucesnyder

05/03/2017 at 08:58PM

17
#2733 - Codingpotato / @codingpotato

05/07/2017 at 08:38AM

17
#2734 - geeeek / @geeeek100

05/13/2017 at 03:56AM

17
#2735 - Eugene Oskin / @EugeneOskin

05/14/2017 at 03:40PM

17
#2736 - John Doe Jr / @bf4648

06/04/2017 at 02:16PM

17
#2737 - Adriano Benin / @adrianob11

06/06/2017 at 03:26PM

17
#2738 - Harsh Kumar / @datsleepyguy

06/08/2017 at 07:27PM

17
#2739 - Ryan McNamara / @MadDogMcNamara

06/23/2017 at 07:27AM

17
#2740 - JoeDavidson / @josirisjosirisj

06/23/2017 at 01:08PM

17
#2741 - Paweł Styczewski / @kryspuss

07/05/2017 at 01:15PM

17
#2742 - Michael Brown / @mbrown1413

07/06/2017 at 02:10PM

17
#2743 - Jon Barker / @j0nbarker

07/12/2017 at 10:53PM

17
#2744 - 黒澤亮二 / @rjkuro

07/19/2017 at 11:45AM

17
#2745 - Maksim / @mitsuigh

07/25/2017 at 06:01PM

17
#2746 - Peter Gundel / @GundelMail

08/03/2017 at 11:57AM

17
#2747 - Asno / @AsnoGordo

08/11/2017 at 03:36AM

17
#2748 - D Fenec / @fenec230

08/18/2017 at 11:37PM

17
#2749 - DJ Martin / @DeeJay_Wins

08/23/2017 at 09:36PM

17
#2750 - Jason / @linlin110

08/24/2017 at 01:23AM

17
#2751 - Pascal / @herr_planlos

08/25/2017 at 01:54PM

17
#2752 - Rachel Murray / @RachelMurray11

08/28/2017 at 08:00AM

17
#2753 - Дима / @dimkino

09/06/2017 at 09:00PM

17
#2754 - Ben Turner / @g2mbenturner1m

09/07/2017 at 08:41PM

17
#2755 - Owen / @owengeorge_

09/21/2017 at 12:32PM

17
#2756 - Cristian / @ekr422

09/26/2017 at 08:22PM

17
#2757 - ؜ / @h43z

09/30/2017 at 08:03PM

17
#2758 - Joachim Nielandt / @joachimnielandt

10/03/2017 at 03:15PM

17
#2759 - Anton Popov / @agraver

10/04/2017 at 02:55PM

17
#2760 - romathonat / @romathonat

10/09/2017 at 01:06PM