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
#3241 - stevan / @stevan76107116

02/12/2020 at 06:45AM

19
#3242 - Ali Kero / @stochastist

02/13/2020 at 10:12PM

19
#3243 - Zhang Lizhong / @ZhangLizhong

03/01/2020 at 10:32PM

19
#3244 - Mikael Brassman / @spoike

03/03/2020 at 04:27PM

19
#3245 - drudd / @drudd

03/08/2020 at 03:29AM

19
#3246 - Sanchez / @r0756108

03/11/2020 at 10:33AM

19
#3247 - ぬるー / @_Nururin

03/24/2020 at 05:55AM

19
#3248 - Richard Pape / @Drippydik187

04/04/2020 at 09:28PM

19
#3249 - Mathias Jean Johansen / @majjoha

04/10/2020 at 09:41AM

19
#3250 - 十郎☔ / @juro106

04/13/2020 at 10:23AM

19
#3251 - Jason Q An / @JasonQAn1

04/23/2020 at 04:45PM

19
#3252 - Christophe Kafrouni / @KafrouniChris

04/30/2020 at 02:55PM

19
#3253 - vimgolf-sensei / @VimgolfS

05/19/2020 at 02:04PM

19
#3254 - Kieran / @Kieran39992130

06/02/2020 at 05:43AM

19
#3255 - Richard Lowe / @b0ggyb33

06/30/2020 at 08:25AM

20
#3256 - Charles H. Leggett / @cleggett

11/21/2014 at 08:58PM

20
#3257 - メガドサイドン / @dosydon

11/24/2014 at 05:07AM

20
#3258 - eric stevens / @ericjaystevens

11/26/2014 at 04:36AM

20
#3259 - Federico Barrios / @efebarrios

11/29/2014 at 05:35PM

20
#3260 - AZ / @lazywithclass

12/03/2014 at 09:40PM

20
#3261 - Luca Giovagnoli / @ryuzaki250

12/14/2014 at 05:49AM

20
#3262 - Andy Davis / @biggernoise

12/21/2014 at 05:16PM

20
#3263 - Frank Zhang / @njzyf

12/23/2014 at 09:37AM

20
#3264 - Christopher Yudichak / @TheOddLinguist

12/24/2014 at 07:31PM

20
#3265 - allenxuyb / @allenxuyb

12/26/2014 at 03:07AM

20
#3266 - Vasily Toropov / @vasandtor

01/12/2015 at 11:22AM

20
#3267 - Camilla / @MsFaceless

02/11/2015 at 06:01AM

20
#3268 - Naoki Masuko / @nmasuko

02/12/2015 at 08:37AM

20
#3269 - Martijn Pepping / @mpepping

03/13/2015 at 09:06PM

20
#3270 - OneManNoDucks / @OneManNoDucks

03/22/2015 at 09:14AM