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

3958 active golfers, 15119 entries

Leaderboard (lowest score wins):
18
#3121 - Adomas Jatužis / @adomixaszvers

05/13/2018 at 11:31AM

18
#3122 - Nathanael / @ngsilverman

05/13/2018 at 10:39PM

18
#3123 - Jonathan Camilleri / @Too_Many_Taken

05/20/2018 at 12:52PM

18
#3124 - CesipXynic / @CesipX

05/22/2018 at 05:34PM

18
#3125 - Vincent COMBEY / @VincentCombey

05/23/2018 at 08:41PM

18
#3126 - William I. Olojede / @williamolojede

05/27/2018 at 10:48AM

18
#3127 - Rida Al Barazi / @rida

06/01/2018 at 07:36PM

18
#3128 - Master Snipes / @snipes_master

06/05/2018 at 01:55PM

18
#3129 - indeveler / @indeveler

06/07/2018 at 08:54AM

18
#3130 - Eliran Bar Noy / @EliranBarNoy

06/17/2018 at 02:46PM

18
#3131 - Andrew Tongen / @atongen

06/25/2018 at 04:00PM

18
#3132 - 김예지 / @8PjPnQfmHR2caqM

06/29/2018 at 08:13AM

18
#3133 - Dustin Lee / @_dustinlee

07/01/2018 at 04:27PM

18
#3134 - Manuranga Perera / @manurangaperera

07/13/2018 at 09:03AM

18
#3135 - qed / @qed13308565

07/24/2018 at 03:29AM

18
#3136 - Ben Allan / @hellobenallan

07/28/2018 at 07:48AM

18
#3137 - Christoph Heim / @iLords

07/28/2018 at 11:19AM

18
#3138 - William Hamilton / @BobHamiltonijk

08/03/2018 at 05:24AM

18
#3139 - Mark Watson / @mrkrwtsn

08/03/2018 at 07:21PM

18
#3140 - ʎɐɹ / @staticjak

08/03/2018 at 07:22PM

18
#3141 - Gabriel Walford / @gtwalford

08/03/2018 at 07:32PM

18
#3142 - Lunar Gods Cry Too / @lunarsobs

08/05/2018 at 04:08AM

18
#3143 - Nursan / @Nursan73316482

08/08/2018 at 09:08PM

18
#3144 - broken_art / @brokenart10

08/30/2018 at 02:10PM

18
#3145 - kevin / @kevin_sdc

09/02/2018 at 07:39AM

18
#3146 - Fellow Millennium / @Fellow2000

09/03/2018 at 10:57AM

18
#3147 - Roch Mirabeau / @roch_kiss

09/20/2018 at 03:01AM

18
#3148 - Dave Brda / @BrdaDave

09/28/2018 at 01:27AM

18
#3149 - :yert: / @avayert

10/13/2018 at 04:39PM

18
#3150 - Cj-bc_sd.sh🐟@mltermコンパイルチャレンジ / @Cj_bc_sd

10/19/2018 at 02:22AM