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

3761 active golfers, 14294 entries

Leaderboard (lowest score wins):
27
#3631 - Ioannis Cherouvim / @cherouvim

09/10/2019 at 07:43PM

27
#3632 - crazydon1 / @crazydon19

09/15/2019 at 11:25AM

27
#3633 - ~• Isaac [5] •~ / @isac_frusgoffer

10/20/2019 at 07:25PM

27
#3634 - Zachary Peterson / @zpeterson16

11/26/2019 at 07:53PM

27
#3635 - Andrei Popescu / @AndreiTheory

12/09/2019 at 01:16PM

27
#3636 - Arnold / @Arnold59755

01/22/2020 at 05:21AM

27
#3637 - Josh Gruber / @Jevitate

01/23/2020 at 01:47AM

27
#3638 - Ahmed / @AhmedBNaji

01/29/2020 at 03:59AM

27
#3639 - Hunter McGee / @Huntzman56

01/29/2020 at 05:52PM

27
#3640 - Diego Pastor / @dxvgx

01/30/2020 at 05:56PM

27
#3641 - Nicus / @NicusTM

01/30/2020 at 06:56PM

27
#3642 - Colton Weeding / @Doc_Glen_Townie

01/30/2020 at 08:47PM

27
#3643 - PTheyssen / @PTheyssen

03/04/2020 at 11:51AM

27
#3644 - Omar Chajia / @omarchajia

03/13/2020 at 07:42PM

28
#3645 - ಸುಬ್ರಹ್ಮಣ್ಯ ಜೋಶಿ / @subbucoding

03/19/2015 at 02:24PM

28
#3646 - kaan / @bike

12/11/2015 at 07:24PM

28
#3647 - Ayberk Yılmaz / @thelatesttrick

12/28/2016 at 09:19PM

28
#3648 - Nate Dean / @Leadhyena

02/12/2017 at 05:12PM

28
#3649 - YuKai Lin / @YuKai_Lin5566

03/09/2017 at 03:00AM

28
#3650 - Alex / @SasjaPollyWog

04/14/2018 at 12:51PM

28
#3651 - Pablo Orduna / @OrdunaPablo

05/12/2018 at 03:23PM

28
#3652 - touilleMan / @touilleMan

07/29/2018 at 11:32PM

28
#3653 - faraaz / @mfyk84

08/19/2018 at 09:05PM

28
#3654 - Brandon Hops / @BrandonHops

09/29/2018 at 05:33PM

28
#3655 - dogmeat / @dogmeat11

10/23/2018 at 01:43PM

28
#3656 - Nebula / @Nebula62997188

10/26/2018 at 06:48AM

28
#3657 - Robert Xu / @RobertX97592288

11/29/2018 at 01:18AM

28
#3658 - zkunsang / @zkunsang

04/14/2019 at 01:55PM

28
#3659 - Matador Funkmann / @MFunkmann

05/15/2019 at 04:33PM

28
#3660 - Patrick / @Pattywack18

01/03/2020 at 12:14PM