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):
19
#3181 - Adam Ford / @_adamford_

05/31/2017 at 02:01AM

19
#3182 - Mykola Savostianov / @sole_pyramidka

06/16/2017 at 08:15PM

19
#3183 - thomas lo / @wagaiznogoud

08/10/2017 at 10:17PM

19
#3184 - blat / @ferblape

08/13/2017 at 07:44AM

19
#3185 - k4 / @k4limschka

08/30/2017 at 12:47PM

19
#3186 - czheo / @czheo

10/10/2017 at 04:36AM

19
#3187 - Piet 🇳🇱 / @pietvanzoen

10/26/2017 at 01:27PM

19
#3188 - Brandon Blakeley / @zkelvin

11/24/2017 at 06:02AM

19
#3189 - BareTull / @BareTull3

11/28/2017 at 07:35PM

19
#3190 - Argyle Sundries / @ArgyleSundries

01/29/2018 at 02:50AM

19
#3191 - Yousef Mohamed / @MohamedYoyo94

01/30/2018 at 12:50AM

19
#3192 - rvnjsphdmn / @rvnjsphdmn

02/05/2018 at 02:41PM

19
#3193 - Charles-Henri GUÉRIN / @charlyx

03/14/2018 at 01:23PM

19
#3194 - Vincent Dahmen / @wahrwolf

03/29/2018 at 12:56PM

19
#3195 - Jonathan Frias / @jonh_pato

05/08/2018 at 08:08PM

19
#3196 - morkelmcvim / @morkelmcvim

05/08/2018 at 09:22PM

19
#3197 - d8d90d / @d8d90d

05/08/2018 at 09:33PM

19
#3198 - Jake B / @jakebyman

05/11/2018 at 08:24PM

19
#3199 - George Watson / @GeorgeDWatson

06/01/2018 at 12:31PM

19
#3200 - Amin Moghaddam / @_m30m

06/04/2018 at 01:38PM

19
#3201 - z0c / @zerocabal

06/08/2018 at 04:48PM

19
#3202 - tmc / @traviscline

07/07/2018 at 06:22AM

19
#3203 - Puj / @MrPuj

07/07/2018 at 06:57PM

19
#3204 - Владислав / @papa_gusserl

07/26/2018 at 07:48PM

19
#3205 - Netcraft Reporter / @NetcraftReport1

08/08/2018 at 02:39PM

19
#3206 - Kevin Cooler / @KevinCooler

08/10/2018 at 12:38AM

19
#3207 - Joey / @joeyism101

09/03/2018 at 01:43AM

19
#3208 - Hachemi / @HachemiHarizi

11/12/2018 at 10:54PM

19
#3209 - toddagibson / @toddagibson

12/23/2018 at 01:42AM

19
#3210 - Inge Becht / @IngeBecht

01/08/2019 at 06:49PM