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

3813 active golfers, 14512 entries

Leaderboard (lowest score wins):
10
#931 - Sebastian / @diasitede

10/04/2019 at 02:56PM

10
#932 - Skywalker 666 / @MemeMasterXXI

10/10/2019 at 12:13AM

10
#933 - Sam O'Malley / @Samuel_OMalley

10/12/2019 at 03:38AM

10
#934 - kkscr / @kkscr1

10/13/2019 at 01:47PM

10
#935 - KlondikeBaer / @BaerKlondike

10/13/2019 at 05:15PM

10
#936 - tuck cursed on rerB / @19emtuck

10/14/2019 at 07:18PM

10
#937 - Erik Engstrom / @eengstrom

10/16/2019 at 07:55PM

10
#938 - Paul Yates / @PYates77

10/18/2019 at 08:38PM

10
#939 - Ivan Volosyuk / @IvanVolosyuk

10/19/2019 at 08:08AM

10
#940 - Tamás Kárándi / @tkarandi

10/19/2019 at 10:41AM

10
#941 - spock900 / @spock9002

10/19/2019 at 01:08PM

10
#942 - Renan Cidale / @rnescalz

10/21/2019 at 10:06PM

10
#943 - Luat Hoang / @luat1203

10/22/2019 at 10:30AM

10
#944 - harmony_krieg / @harmony_krieg

10/26/2019 at 09:52AM

10
#945 - skamgolf / @skamgolf

11/03/2019 at 09:00PM

10
#946 - Riley Shea / @RShea001

11/04/2019 at 03:41AM

10
#947 - Emil Braserud / @Erdustiggen

11/08/2019 at 05:02PM

10
#948 - shoji541 / @shoji541

11/09/2019 at 11:16AM

10
#949 - 周之越 / @zhiyue_zhou

11/11/2019 at 06:32AM

10
#950 - Daniel Klepacki / @daniel_klepacki

11/11/2019 at 09:06PM

10
#951 - Lei Kin / @kireinasorakin

11/13/2019 at 04:16AM

10
#952 - shota_ogswr / @shota_ogasawara

11/24/2019 at 02:19PM

10
#953 - oldandslow / @oldandslow5

11/26/2019 at 08:18AM

10
#954 - Eviber / @youvaaaaa

11/27/2019 at 10:47AM

10
#955 - Lion de Bell / @CLGBamboo

12/01/2019 at 08:15PM

10
#956 - Pierre Balayé / @PierreBalaye

12/07/2019 at 02:02PM

10
#957 - Paweł Samoraj / @samorajp

12/10/2019 at 01:54PM

10
#958 - Noisome Possum / @NoisomePossum

12/13/2019 at 05:43PM

10
#959 - James Casey / @hanavi

12/20/2019 at 11:03PM

10
#960 - Rishabh Chatterjee / @RishabhChatte14

12/23/2019 at 09:00AM