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

3806 active golfers, 14477 entries

Leaderboard (lowest score wins):
10
#631 - Luke Bryant / @LukeBryant55

10/01/2017 at 10:08PM

10
#632 - Michael Oberst / @MichaelOberst

10/01/2017 at 11:10PM

10
#633 - Chris Atanasian / @ChrisAtanasian

10/03/2017 at 09:57PM

10
#634 - Gaël Delalleau / @gaeldelalleau

10/10/2017 at 01:04PM

10
#635 - jairoandre / @jairoandre

10/11/2017 at 10:01PM

10
#636 - Rich Cheng / @sedm0784

10/12/2017 at 11:08AM

10
#637 - VirginiaSteaks / @VirginiaSteaks

10/15/2017 at 05:15PM

10
#638 - George Rabanca / @grabanca

10/15/2017 at 05:23PM

10
#639 - Michail Pishchagin / @mblsha

10/22/2017 at 02:23PM

10
#640 - Florian Kluck / @KluckF

10/24/2017 at 06:47PM

10
#641 - mkl / @Hnr1zklc

10/26/2017 at 09:20AM

10
#642 - Anton Gordienko / @agordienko2

10/26/2017 at 09:52PM

10
#643 - MuadDev / @MuadDev

10/31/2017 at 02:04PM

10
#644 - David Rowe / @nigelfloe

11/03/2017 at 08:22PM

10
#645 - Danilo Đokić / @DaniloOkic

11/05/2017 at 02:20PM

10
#646 - Chris Kirkland / @numbahs

11/07/2017 at 03:52AM

10
#647 - Turkey Man / @lvturkeyman

11/07/2017 at 04:20PM

10
#648 - Adam Silkey / @Dooflegna

11/07/2017 at 07:39PM

10
#649 - Eric Söderström / @eksoderstrom

11/07/2017 at 09:13PM

10
#650 - Kim Hwa Joong / @hanmwoi

11/08/2017 at 01:14PM

10
#651 - Benoit Mortgat / @Benoit_Mortgat

11/13/2017 at 04:07PM

10
#652 - Mihai / @mihaicristiant

11/15/2017 at 03:35AM

10
#653 - manos koustelakis / @KoutsManos

11/18/2017 at 06:52PM

10
#654 - Rubén Laguna / @ecerulm

11/27/2017 at 09:55PM

10
#655 - macmental / @macmental

11/28/2017 at 08:12PM

10
#656 - alex m / @al_mk_

12/04/2017 at 03:24PM

10
#657 - Pereant osores / @viniciusxp

12/05/2017 at 07:59AM

10
#658 - flykule / @flykule

12/06/2017 at 09:35AM

10
#659 - Joachim Wedin / @joachim_wedin

12/07/2017 at 10:12PM

10
#660 - Kenshiro / @weapom923_2

12/13/2017 at 03:40AM