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

4071 active golfers, 15593 entries

Leaderboard (lowest score wins):
21
#3631 - Elronnd / @earenndil

08/26/2017 at 05:45AM

21
#3632 - Piotr Kowalik / @pietrasagh

09/17/2017 at 06:26PM

21
#3633 - DBattou / @DBattou

03/19/2018 at 04:27PM

21
#3634 - Walerian Sobczak / @walerian777

05/04/2018 at 09:37AM

21
#3635 - Kyle Partridge / @partkyle

06/06/2018 at 08:31PM

21
#3636 - 권순재 / @FhOrZyV4MhUNXQx

06/29/2018 at 07:45AM

21
#3637 - jestem króliczkiem / @karlicoss

07/14/2018 at 01:11PM

21
#3638 - Dylan Waits / @pianoman320

07/15/2018 at 12:10AM

21
#3639 - Branquito / @branquito

07/15/2018 at 10:50PM

21
#3640 - Daniel Gordon / @DGordonCS

07/23/2018 at 10:27PM

21
#3641 - Jordan 🌈 / @JordanCallumA

08/01/2018 at 08:11AM

21
#3642 - 无眠的夜狐狸 / @fox_ni

08/15/2018 at 03:08AM

21
#3643 - Mohammad Anton R. S. / @Moanrisy

09/12/2018 at 03:35AM

21
#3644 - Alex Mitchell / @alexthemitchell

09/21/2018 at 09:21PM

21
#3645 - vimgolfer1234 / @vimgolfer12342

10/25/2018 at 12:12AM

21
#3646 - vg / @vg53210350

10/28/2018 at 06:11PM

21
#3647 - editor3D / @editor3D

11/12/2018 at 07:31PM

21
#3648 - Hendrik Dalagan / @hendrikdalagan

11/21/2018 at 10:07PM

21
#3649 - Tom Troyer / @tom_troyer

11/29/2018 at 07:56PM

21
#3650 - Ryan Richter / @RRichter7504

11/30/2018 at 08:03PM

21
#3651 - Kelly Chang @XOXO / @kellyyychang

12/04/2018 at 11:29PM

21
#3652 - Khoa Anh Nguyen / @ca0932

12/28/2018 at 03:40AM

21
#3653 - Prem Oza / @OzaPrem

01/03/2019 at 11:30AM

21
#3654 - Alexander Burkov / @alex_burkov

02/14/2019 at 12:41PM

21
#3655 - Marko Z / @MarkoZ24828260

03/13/2019 at 03:36PM

21
#3656 - seul / @seul15987381

06/03/2019 at 09:08AM

21
#3657 - Vinícius Hoyer / @viniciushoyer

06/30/2019 at 02:02PM

21
#3658 - ( ͡° ͜ʖ ͡°) / @jspdmz

07/22/2019 at 01:21AM

21
#3659 - Joe Fahnestock🌵 / @Joecupojoe

07/23/2019 at 01:27AM

21
#3660 - Robert Buckley / @rbuckley30

08/27/2019 at 05:14PM