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
#3211 - Nguyen Van Bac / @taybacvt

01/19/2020 at 02:16PM

18
#3212 - Matthew Bourque / @MattJBourque

02/01/2020 at 11:01PM

18
#3213 - Wesley Runnels / @wesleyrunnels

04/25/2020 at 04:24PM

18
#3214 - Nicolas Daval / @ndaval

04/30/2020 at 10:19AM

18
#3215 - のあべるぐ / @n04ln

05/03/2020 at 08:44AM

18
#3216 - dotvimrc / @dotvimrc1

05/15/2020 at 08:28PM

18
#3217 - She3o at HOME / @Anas_She3sha3y

05/18/2020 at 08:32AM

18
#3218 - gino / @imGinoW

05/21/2020 at 03:55PM

18
#3219 - Mack Hutsell / @sellshuts

05/24/2020 at 06:32PM

18
#3220 - Di Liu / @Skyerliu

06/20/2020 at 06:19PM

18
#3221 - Lakshitha Wijesinghe / @lakshithaww

06/21/2020 at 07:25AM

18
#3222 - HiJova / @Jova28190268

07/05/2020 at 03:15AM

18
#3223 - Moss / @m0ssc0de

07/14/2020 at 04:38AM

18
#3224 - Daniel Habib / @danielhvs

07/21/2020 at 02:35AM

18
#3225 - Dzmitry / @Dzmitry88489136

07/23/2020 at 09:53AM

18
#3226 - mindgitrwx / @mindgitrwx

08/03/2020 at 10:51AM

18
#3227 - Theo Sarrazin / @tshaero

08/17/2020 at 06:08PM

18
#3228 - Václav Pernička / @VaclavPernicka

09/05/2020 at 08:52PM

18
#3229 - ZackBurtAWS / @ZackBurtSDE

09/22/2020 at 03:23PM

18
#3230 - hhh / @hhh78116797

10/17/2020 at 04:22PM

19
#3231 - Thiboust Tony / @TonyT3005

11/14/2014 at 03:07PM

19
#3232 - Charlton Austin / @charltonaustin

11/16/2014 at 11:07PM

19
#3233 - Glauco Pires / @grpires

11/24/2014 at 09:39PM

19
#3234 - aaron sullivan / @aaronsull

11/27/2014 at 08:28AM

19
#3235 - Nathan Kot / @nathankot

11/27/2014 at 02:46PM

19
#3236 - Alexander Bandukwala / @abanduk

12/04/2014 at 09:21PM

19
#3237 - Anil Kulkarni / @AnilRedshift

12/06/2014 at 10:29PM

19
#3238 - Sandeep Kumar Gupta / @skgBanga

12/15/2014 at 05:05AM

19
#3239 - Ed / @posva

12/17/2014 at 05:03PM

19
#3240 - Jordana Lachow / @TomofBedlam

12/28/2014 at 05:56AM