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

3803 active golfers, 14465 entries

Leaderboard (lowest score wins):
20
#3301 - Florian Gauger / @FlorianGauger

06/03/2017 at 01:23AM

20
#3302 - Hendry Sadrak / @hendrysadrak

07/14/2017 at 11:46AM

20
#3303 - tsumi / @prrruni

08/05/2017 at 08:14PM

20
#3304 - guilherme / @guireisc

08/09/2017 at 12:19PM

20
#3305 - Brandon Height / @Lask0x

08/09/2017 at 07:48PM

20
#3306 - Anton Outkine / @AOutkine

08/23/2017 at 12:15AM

20
#3307 - Octave Crespel / @OCrespel

08/27/2017 at 04:53PM

20
#3308 - Benjamin Petit / @benjipetit

09/12/2017 at 01:45AM

20
#3309 - Paul Woestelandt / @pwoestelandt

10/09/2017 at 04:42PM

20
#3310 - Scott Helm / @scott_helm

11/07/2017 at 11:25PM

20
#3311 - Daniel de Vries / @devries_d

02/15/2018 at 04:21PM

20
#3312 - ryu gosling / @bbbeloveddd

02/19/2018 at 03:10AM

20
#3313 - Anthony Landreth / @robophilosopher

02/27/2018 at 06:41AM

20
#3314 - Amanj Sherwany / @amanjpro

03/04/2018 at 05:54PM

20
#3315 - Austin Ware / @AustinWare17

03/12/2018 at 05:42PM

20
#3316 - Brooks Swinnerton / @bswinnerton

04/19/2018 at 02:46AM

20
#3317 - |-.-| / @bantuts

04/21/2018 at 05:39PM

20
#3318 - wilsonjusuf / @wilsonjusuf

06/07/2018 at 06:51PM

20
#3319 - Kwak / @Kwak35380772

06/29/2018 at 08:19AM

20
#3320 - Vaibhav Agarwal / @avaibhav25

07/18/2018 at 03:26PM

20
#3321 - Alexei Eleusis Díaz / @alexeieleusis

08/01/2018 at 01:03AM

20
#3322 - Poulpatine / @Poulpe_Py

08/11/2018 at 12:15PM

20
#3323 - maxime he / @he_maxime

08/16/2018 at 03:36PM

20
#3324 - Mark Oswald / @mrkosw

08/21/2018 at 01:33PM

20
#3325 - Cathal McGuire / @cmcguire79

09/07/2018 at 01:47PM

20
#3326 - 伺か / @ojiry

09/18/2018 at 05:20AM

20
#3327 - Pumpkin Parapet / @PumpkinParapet

10/05/2018 at 07:53PM

20
#3328 - Dax / @daaawx

10/15/2018 at 07:46PM

20
#3329 - Calvin Fong / @LordyBaka

11/04/2018 at 01:22AM

20
#3330 - Vincent Li / @Harashobic

11/09/2018 at 12:53AM