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

3813 active golfers, 14512 entries

Leaderboard (lowest score wins):
20
#3271 - Luca Giovagnoli / @ryuzaki250

12/14/2014 at 05:49AM

20
#3272 - Andy Davis / @biggernoise

12/21/2014 at 05:16PM

20
#3273 - Frank Zhang / @njzyf

12/23/2014 at 09:37AM

20
#3274 - Christopher Yudichak / @TheOddLinguist

12/24/2014 at 07:31PM

20
#3275 - allenxuyb / @allenxuyb

12/26/2014 at 03:07AM

20
#3276 - Vasily Toropov / @vasandtor

01/12/2015 at 11:22AM

20
#3277 - Camilla / @MsFaceless

02/11/2015 at 06:01AM

20
#3278 - Naoki Masuko / @nmasuko

02/12/2015 at 08:37AM

20
#3279 - Martijn Pepping / @mpepping

03/13/2015 at 09:06PM

20
#3280 - OneManNoDucks / @OneManNoDucks

03/22/2015 at 09:14AM

20
#3281 - Klemen Košir / @KarboniteKream

03/24/2015 at 08:49AM

20
#3282 - Brad / @augmentedfourth

03/25/2015 at 01:35PM

20
#3283 - Rijnard van Tonder / @rvtond

04/27/2015 at 02:22AM

20
#3284 - dest royer / @ddddestroyerrrr

05/03/2015 at 08:23PM

20
#3285 - 自称相談役 / @Zisyou_Adviser

06/07/2015 at 01:05AM

20
#3286 - Marlo Vlietstra / @daure123

07/03/2015 at 10:33AM

20
#3287 - Test / @goodbyetest1248

07/24/2015 at 03:12PM

20
#3288 - Lukas Froehlich / @humpingcats

08/05/2015 at 06:59PM

20
#3289 - Morten Lund / @92morten

09/11/2015 at 04:35PM

20
#3290 - Aurélien Lair / @aurelien_lair

09/20/2015 at 07:32PM

20
#3291 - Felix Maxwell / @felix_maxwell

09/26/2015 at 10:19PM

20
#3292 - Jo / @jonearth42

11/21/2015 at 05:44PM

20
#3293 - Amol Mandhane / @AmolMandhane

12/04/2015 at 09:34PM

20
#3294 - adrien frediani / @fredianiadrien

12/06/2015 at 08:39PM

20
#3295 - Antoine Brunet / @AntoineBrunet

01/11/2016 at 08:44PM

20
#3296 - Lucas McDaniel / @Ldmcdaniel109

01/21/2016 at 05:10PM

20
#3297 - Joel Stanner / @JoelStanner

01/29/2016 at 12:02PM

20
#3298 - Almog / @almog

02/21/2016 at 11:11AM

20
#3299 - Yariv / @yarivb

02/21/2016 at 11:13AM

20
#3300 - Flowepmed S. Sirch / @iluvfugu

03/10/2016 at 04:56AM