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

3843 active golfers, 14658 entries

Leaderboard (lowest score wins):
31
#3781 - 0x750x730x650x720x6e0x610x6d0x65 / @0x900x900x90

04/11/2020 at 06:19PM

31
#3782 - Zach Kirby / @zkirby2020

08/03/2020 at 04:21AM

32
#3783 - Ryota / @No_1_LION

11/20/2014 at 04:23AM

32
#3784 - T Leininger / @TLein4

01/27/2015 at 03:59AM

32
#3785 - Chris Trott / @TwoCentStudios

04/03/2015 at 07:04PM

32
#3786 - Lemuel Casanova / @LemmyMC

05/06/2015 at 12:42AM

32
#3787 - Chris Grantham / @crgrantham

11/12/2015 at 06:35PM

32
#3788 - Guillem Palou / @guillempalou

03/06/2018 at 10:17AM

32
#3789 - Bram / @Bram__Janssen

12/07/2019 at 01:14PM

33
#3790 - Чупраков Сергей / @sergeyzsg

11/24/2014 at 09:05AM

33
#3791 - Zeeshan Jan / @zeeshanjan82

01/24/2015 at 06:26AM

33
#3792 - Lucien Ng / @LucienNg1

03/22/2016 at 04:19PM

33
#3793 - GAUTAM V NAIK / @gautamnaik1994

08/24/2019 at 10:59AM

33
#3794 - Carl Smestad / @CarlSmes

03/30/2020 at 05:49PM

34
#3795 - Eden Vicary / @edenvicary

03/21/2016 at 07:16AM

34
#3796 - jtoy / @jtoy

11/26/2016 at 11:24PM

34
#3797 - Name / @Name26870257

07/25/2018 at 01:07PM

34
#3798 - Marcus Höjvall / @softarn88

04/02/2019 at 12:15PM

35
#3799 - damondouglas / @damondouglas

01/23/2015 at 01:11AM

35
#3800 - Paul Chandler / @chandlpa

03/05/2015 at 12:48AM

35
#3801 - Danny / @dannywood1976

05/07/2019 at 09:04AM

35
#3802 - dahara / @kuma_moooon

10/21/2019 at 10:14AM

36
#3803 - GrupoCITEC / @GrupoCITEC

01/15/2015 at 02:59AM

36
#3804 - Jean Carlo Machado / @JeanCarloMachad

04/18/2015 at 01:05PM

36
#3805 - Eric Man / @ericmanlol

07/01/2018 at 03:33PM

36
#3806 - shimamoto / @_sim_a

08/15/2018 at 06:19AM

36
#3807 - Cole Hudson / @colejhudson

11/21/2018 at 06:16PM

37
#3808 - Jef Vlamings / @jefvlamings

10/04/2017 at 02:49PM

37
#3809 - saurabh tripathi / @saurabh908583

08/10/2018 at 04:28AM

38
#3810 - しょーへー / @pasopeko

01/24/2015 at 02:37PM