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

3962 active golfers, 15136 entries

Leaderboard (lowest score wins):
15
#2191 - Luiz Eduardo Amaral / @_luxedo

08/09/2019 at 04:24PM

15
#2192 - Simon Wilkinson / @simondwilkinson

08/23/2019 at 09:29PM

15
#2193 - Scott Moore / @scottwillmoore

08/26/2019 at 12:04AM

15
#2194 - forvimgolf / @forvimgolf2

08/26/2019 at 09:20PM

15
#2195 - noisevoid / @noisevoid

09/02/2019 at 03:56PM

15
#2196 - Jakub Jindra / @jakub_jindra

09/08/2019 at 09:48AM

15
#2197 - Ariel Miculas / @ArielMiculas

09/18/2019 at 04:46PM

15
#2198 - Udalny / @Udalny1

09/26/2019 at 09:05AM

15
#2199 - Vladimir Leskov / @vladimirlesk

10/12/2019 at 12:11PM

15
#2200 - jorge duran / @jduranroyo

10/18/2019 at 07:39AM

15
#2201 - Lawrence Gray / @LawrenceGray23

10/19/2019 at 08:36AM

15
#2202 - Incognita / @flutterlice

10/21/2019 at 11:35AM

15
#2203 - 0xNinja / @0x_Ninja

10/22/2019 at 02:38PM

15
#2204 - Yasky / @Yaasky

10/23/2019 at 07:43PM

15
#2205 - ShakespeareToGo / @ToShakespeare

11/12/2019 at 03:53PM

15
#2206 - alibabadienstaccount / @alibabadiensta1

11/14/2019 at 03:54PM

15
#2207 - cínicoycansino / @pgv958

11/20/2019 at 12:57PM

15
#2208 - Mike Wittie / @mike_wittie

11/21/2019 at 03:52AM

15
#2209 - Przemysław Michalak / @dambusio

11/24/2019 at 11:41AM

15
#2210 - 煮沸的白開水 / @season_303030

12/02/2019 at 08:02AM

15
#2211 - Damon Baker / @DoormanBarker

12/11/2019 at 01:11PM

15
#2212 - John Otters / @OttersJohn

12/15/2019 at 10:46PM

15
#2213 - Steve Racanovic / @steve_racanovic

12/19/2019 at 01:31AM

15
#2214 - 坪井和成 / @dadasutasudadas

12/20/2019 at 06:30AM

15
#2215 - Vasily / @wolvschool

12/22/2019 at 11:14AM

15
#2216 - hokonch / @hokonch

12/24/2019 at 05:48PM

15
#2217 - None / @sh1chuang

12/30/2019 at 11:40AM

15
#2218 - hereforthepermission / @herefortheperm1

01/20/2020 at 02:36PM

15
#2219 - beew71493 / @beew71493

01/21/2020 at 06:37AM

15
#2220 - DosLin / @hidoslin

01/21/2020 at 07:17AM