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):
16
#2401 - Rasmus / @SBareSSomErMig

09/16/2016 at 08:29PM

16
#2402 - Christophe Perrotin / @ChrisPerSurTwit

09/24/2016 at 04:25PM

16
#2403 - claytron / @claytron

10/04/2016 at 11:42PM

16
#2404 - John Barbero Unenge / @JBarberU

10/19/2016 at 10:21AM

16
#2405 - Christian Rech / @de_Rech

10/20/2016 at 06:33PM

16
#2406 - TETSU / @kaoru6strings

11/02/2016 at 08:31AM

16
#2407 - Philipp Mildenberger / @_phil_m

11/14/2016 at 11:04PM

16
#2408 - BlackCap / @BlackCapCoder

11/23/2016 at 01:46PM

16
#2409 - KM or MVDH / @dwarfylenain

11/23/2016 at 07:40PM

16
#2410 - Максим Ливень / @maxlevs

11/24/2016 at 04:16AM

16
#2411 - Sikado / @sikado

12/10/2016 at 09:07PM

16
#2412 - Craig Langford / @cllangfo

12/11/2016 at 01:04PM

16
#2413 - Nessig / @Nessig5

12/18/2016 at 03:16AM

16
#2414 - Jan Eisenhauer / @EisenhauerJan

12/22/2016 at 02:20AM

16
#2415 - Ryugo Abe / @Ryu8179

12/27/2016 at 07:46AM

16
#2416 - poke / @useraaaaaaaaaaf

12/27/2016 at 04:53PM

16
#2417 - Wojciech / @linuxuser404

01/05/2017 at 10:06PM

16
#2418 - Hans Yelek / @hans_yelek

01/08/2017 at 08:37PM

16
#2419 - J. Cosa / @esoesotracosa

01/16/2017 at 11:39AM

16
#2420 - ZW / @ZW73226885

01/24/2017 at 06:28PM

16
#2421 - leslie snipes / @imjakerl

01/25/2017 at 05:44AM

16
#2422 - Charlier / @Charlicanman

01/28/2017 at 02:13PM

16
#2423 - Cù Hữu Hoàng / @Cuhuuhoang

02/14/2017 at 03:23AM

16
#2424 - Evgeny Morozov / @Evmorov

02/25/2017 at 09:49PM

16
#2425 - Nicholas Shirley / @nashirley

02/26/2017 at 01:11AM

16
#2426 - Silhouettry / @silhouettry

02/27/2017 at 11:56PM

16
#2427 - Daniel Schäfer / @DrJohnZoid

03/02/2017 at 12:57PM

16
#2428 - Alex Subtle / @AlexSubtle

03/30/2017 at 09:27PM

16
#2429 - Aman Singhal / @helixinverse

04/02/2017 at 02:56AM

16
#2430 - Ryan Jarrett / @texmexas

04/03/2017 at 03:06PM