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
#2131 - Frank Korf / @OMGFrank

08/14/2018 at 07:30PM

15
#2132 - Oran / @Oranav

08/15/2018 at 11:56AM

15
#2133 - Coruja Queridinha / @miriamretka

08/19/2018 at 08:11PM

15
#2134 - Cam Smith / @Comradesmith

08/22/2018 at 08:23AM

15
#2135 - Francisco Rivera / @frivera621

08/25/2018 at 05:04PM

15
#2136 - Test / @TheVastComplex

09/06/2018 at 05:51PM

15
#2137 - Bart3k / @Bart3k3

09/13/2018 at 07:39PM

15
#2138 - Julià Mestieri / @julimestieri

09/14/2018 at 08:16AM

15
#2139 - Ruben Paz / @IstarEldritch

09/16/2018 at 12:33AM

15
#2140 - h3x3sworld / @h3x3sworld

09/17/2018 at 04:45PM

15
#2141 - Ivan Ho / @ivandaho

09/19/2018 at 09:09PM

15
#2142 - Keyboard Fire / @KeyboardFire

10/06/2018 at 09:30PM

15
#2143 - Bruce Adams / @bruceadams1054

10/13/2018 at 11:10AM

15
#2144 - Aubrey Lavigne / @AubreySLavigne

10/20/2018 at 08:12AM

15
#2145 - Reuben Narkwo / @reubwo

10/21/2018 at 07:50PM

15
#2146 - Sxcy / @SxcyX

10/22/2018 at 08:12PM

15
#2147 - asdsadj / @asdsadj1

11/06/2018 at 11:59AM

15
#2148 - Tad McCorkle / @TAD897

11/08/2018 at 11:47PM

15
#2149 - slithy2000 / @slithy2000

11/09/2018 at 11:00AM

15
#2150 - Omar Zeidan / @OZeidan97

11/13/2018 at 12:20PM

15
#2151 - name / @name65894813

11/14/2018 at 04:51PM

15
#2152 - steve N ӾlvЮ / @xlvio

11/17/2018 at 07:32PM

15
#2153 - succcubbus / @succcubbus

11/20/2018 at 10:27PM

15
#2154 - diwa / @Di_nate_

11/23/2018 at 03:04AM

15
#2155 - Patrick / @pudii_

11/26/2018 at 10:16PM

15
#2156 - approx / @approx54525066

12/27/2018 at 11:50PM

15
#2157 - Slawek Ligus / @ooz_ie

12/30/2018 at 05:22AM

15
#2158 - Phil Devitt / @GeneralHav0k

01/02/2019 at 03:37PM

15
#2159 - Blah Blah / @BlahBla08410389

01/19/2019 at 06:03PM

15
#2160 - Tim White / @antichrist65535

01/30/2019 at 02:50AM