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

3803 active golfers, 14465 entries

Leaderboard (lowest score wins):
18
#3091 - Matthew Bourque / @MattJBourque

02/01/2020 at 11:01PM

18
#3092 - Wesley Runnels / @wesleyrunnels

04/25/2020 at 04:24PM

18
#3093 - Nicolas Daval / @ndaval

04/30/2020 at 10:19AM

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

05/03/2020 at 08:44AM

18
#3095 - dotvimrc / @dotvimrc1

05/15/2020 at 08:28PM

18
#3096 - She3o at HOME / @Anas_She3sha3y

05/18/2020 at 08:32AM

18
#3097 - gino / @imGinoW

05/21/2020 at 03:55PM

18
#3098 - Mack Hutsell / @sellshuts

05/24/2020 at 06:32PM

18
#3099 - Di Liu / @Skyerliu

06/20/2020 at 06:19PM

18
#3100 - Lakshitha Wijesinghe / @lakshithaww

06/21/2020 at 07:25AM

19
#3101 - Thiboust Tony / @TonyT3005

11/14/2014 at 03:07PM

19
#3102 - Charlton Austin / @charltonaustin

11/16/2014 at 11:07PM

19
#3103 - Glauco Pires / @grpires

11/24/2014 at 09:39PM

19
#3104 - aaron sullivan / @aaronsull

11/27/2014 at 08:28AM

19
#3105 - Nathan Kot / @nathankot

11/27/2014 at 02:46PM

19
#3106 - Alexander Bandukwala / @abanduk

12/04/2014 at 09:21PM

19
#3107 - Anil Kulkarni / @AnilRedshift

12/06/2014 at 10:29PM

19
#3108 - Sandeep Kumar Gupta / @skgBanga

12/15/2014 at 05:05AM

19
#3109 - Ed / @posva

12/17/2014 at 05:03PM

19
#3110 - Jordana Lachow / @TomofBedlam

12/28/2014 at 05:56AM

19
#3111 - Eric Biven / @EricBiven

12/31/2014 at 08:16PM

19
#3112 - evilmoe ☮ / @evilmoe

01/02/2015 at 08:52AM

19
#3113 - Ayman Farhat / @aymanfarhat

01/06/2015 at 06:56PM

19
#3114 - Antonio Murdaca / @runc0m

01/16/2015 at 10:00PM

19
#3115 - Raingomm / @raingomm

01/19/2015 at 07:25AM

19
#3116 - Giorgio / @Gpx

01/19/2015 at 06:41PM

19
#3117 - air wick / @airwickc

01/22/2015 at 11:52PM

19
#3118 - SilentFl / @Silent_Fl

01/25/2015 at 07:54AM

19
#3119 - Evgeny Traytyak / @evgen_traytyak

01/28/2015 at 03:10PM

19
#3120 - Roman Firt / @RomanFirt

01/28/2015 at 08:36PM