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

3964 active golfers, 15145 entries

Leaderboard (lowest score wins):
18
#3061 - IgnatiusMcGowan / @IgnatiusMcGowan

05/23/2017 at 10:19PM

18
#3062 - Lukas Tobler / @lut0bler

06/03/2017 at 07:23PM

18
#3063 - 严泽 / @yanze000

06/07/2017 at 10:07AM

18
#3064 - David Gustavsson / @mrGustaphe

06/07/2017 at 08:44PM

18
#3065 - Carl Egbert / @CarlOEgbert

06/09/2017 at 06:37AM

18
#3066 - Will Gunther / @WillGunther

06/11/2017 at 07:12PM

18
#3067 - Cody Loyd / @codyloyd

06/14/2017 at 05:26PM

18
#3068 - Emmanuel Herrero / @hairarrow

06/20/2017 at 07:24PM

18
#3069 - Lukas Galke / @_lpag

06/25/2017 at 10:28PM

18
#3070 - Michael Rees / @reesmichael1

06/26/2017 at 05:42PM

18
#3071 - Stop and think / @ms_uncountable

07/06/2017 at 06:51PM

18
#3072 - Sinthorion / @sinthorion

07/27/2017 at 02:25PM

18
#3073 - みんな違ってみんな悪い / @sai_kyouto

07/30/2017 at 03:29PM

18
#3074 - Joen Tolgraven / @joentolgraven

08/07/2017 at 03:48PM

18
#3075 - Vik Sarang / @Viklove

08/10/2017 at 10:20PM

18
#3076 - Ryan Patterson / @CGamesPlay

08/18/2017 at 03:14AM

18
#3077 - Justin Taylor / @tayloredapps

08/23/2017 at 05:35PM

18
#3078 - jfdw102 / @jfdw102

08/24/2017 at 11:54AM

18
#3079 - Marcin Paliwoda / @eukaliptuss

08/25/2017 at 01:15PM

18
#3080 - Zel / @Zel98836552

09/07/2017 at 08:33PM

18
#3081 - jirgn / @jirgn

09/16/2017 at 04:47PM

18
#3082 - hatoo / @hato2000

09/24/2017 at 04:43AM

18
#3083 - Chathura Colombage / @cdewaka

09/26/2017 at 03:22PM

18
#3084 - 5tephen / @geluso

09/29/2017 at 11:30PM

18
#3085 - Lucas / @luc_4d

10/05/2017 at 12:40PM

18
#3086 - Virgil Ashruf / @eSrem

10/10/2017 at 06:36PM

18
#3087 - Kevin / @PurpSchkurp

10/15/2017 at 10:37AM

18
#3088 - Gregor / @Gregor07899789

10/15/2017 at 06:18PM

18
#3089 - HC / @soarersiuhc

10/19/2017 at 10:41PM

18
#3090 - Mustafa Guler / @mguler96

10/31/2017 at 09:58PM