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 3635 remaining solutions by signing in and submitting your own entry
#3636 Zac sliker / @Zacsliker - Score: 88 - 01/29/20 @ 16:05
p2wiii<BS><BS><Left><Left><Esc><Left><Left><Right><Right>i<Right><Right><Esc>a<Esc>A<Esc>"i"i<BS><BS><Right>a"<Right>"<Down><Left><Left>"<Right><Right>'<BS>"<Down><Left><Left><Left>"<Right><Right><Right>"<Esc><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><CR><CR><CR>:wq!<CR>

0 comments


Created by: @udioica

3636 active golfers, 13763 entries

Leaderboard (lowest score wins):
10
#751 - AnaverageJoe / @AnaverageJ

06/28/2018 at 09:35AM

10
#752 - sspan / @sspantz

06/29/2018 at 02:42AM

10
#753 - lilei0825 / @lilei08251

07/03/2018 at 01:07AM

10
#754 - Alfredo Ribeiro / @aribeiro

07/05/2018 at 07:14PM

10
#755 - Zak Wright / @TheZakWright

07/07/2018 at 03:21AM

10
#756 - Judy / @Bibilidibipi

07/09/2018 at 10:58PM

10
#757 - Yasu Flores / @YasuFlores

07/10/2018 at 04:05AM

10
#758 - Artur Mróz / @MrozArtur

07/11/2018 at 11:21PM

10
#759 - Gareth Miller / @CTingCTer

07/13/2018 at 08:35AM

10
#760 - Chris Dean / @ChrisDe62379742

07/18/2018 at 06:35PM

10
#761 - BartJanssen / @BartJanssen

07/23/2018 at 01:06PM

10
#762 - Marius Lucian Pop / @mlpinit

07/24/2018 at 11:50PM

10
#763 - Christopher Erin / @MCNormalMode

07/25/2018 at 12:00AM

10
#764 - Tom Biskup / @Tombisk

07/27/2018 at 06:42PM

10
#765 - h3is3nd3rp / @h3is3nd3rp

08/01/2018 at 09:14PM

10
#766 - BanyRule / @BanyRule

08/05/2018 at 02:39PM

10
#767 - O / @O34721877

08/07/2018 at 05:42AM

10
#768 - Lorenzo Leonini / @Leol_

08/12/2018 at 12:40AM

10
#769 - Fergus Longley / @FergusLongley

08/17/2018 at 04:23PM

10
#770 - 김성현 / @TVrZzAZsmL4lS3S

08/24/2018 at 07:42PM

10
#771 - Chi Jun / @jun13blu

08/28/2018 at 07:42AM

10
#772 - Trey Deitch / @differenceeq

09/02/2018 at 12:47AM

10
#773 - Manuel Oswald / @_maoswald

09/02/2018 at 02:23PM

10
#774 - Epecb / @BceEpecb

09/04/2018 at 06:22PM

10
#775 - Lee Saville / @LeeSaville

09/04/2018 at 09:25PM

10
#776 - a / @a05150445

09/06/2018 at 03:15AM

10
#777 - David Findley / @thefindley

09/06/2018 at 06:50PM

10
#778 - royer / @RoyerMoyer1

09/14/2018 at 10:23PM

10
#779 - konankun / @__konankun

09/18/2018 at 10:07AM

10
#780 - Vasil Mikhalenya / @bazillek

09/20/2018 at 10:16AM