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

3919 active golfers, 14960 entries

Leaderboard (lowest score wins):
17
#2611 - dosmanak / @dosmanak

03/09/2015 at 08:30AM

17
#2612 - Kaung Htet Zaw / @khzaw

03/17/2015 at 08:47AM

17
#2613 - dtennant / @dtennant

03/18/2015 at 08:22PM

17
#2614 - David Martínez Rubio / @damaru_BigSmile

03/21/2015 at 12:33PM

17
#2615 - Hooman / @namooh

03/22/2015 at 03:10PM

17
#2616 - chvzvhn / @chvzvhn

03/27/2015 at 01:41AM

17
#2617 - Alice Benign / @AliceBenign

03/27/2015 at 07:03PM

17
#2618 - ryo_n / @ryo_n

04/05/2015 at 03:14AM

17
#2619 - William Ott / @oddalot

04/07/2015 at 05:43PM

17
#2620 - John Lee / @NSA_agent_209

04/12/2015 at 06:53PM

17
#2621 - Joseph Siddall / @jbsiddall

04/19/2015 at 06:03AM

17
#2622 - Gracjan Grala / @gracjangrala

04/21/2015 at 05:32PM

17
#2623 - Jason Walton / @jay_ay_y

04/28/2015 at 08:06PM

17
#2624 - Slurpie Chapdash / @SlurpieChapdash

05/01/2015 at 09:50PM

17
#2625 - montalvoMiguel / @imontalvomiguel

05/05/2015 at 05:25AM

17
#2626 - Ridwan Mulyadi / @ridmul

05/12/2015 at 12:18AM

17
#2627 - Arsenic Hall / @FoxLisk

05/12/2015 at 11:25PM

17
#2628 - Vivek Sunder / @sviveksunder

05/13/2015 at 02:24PM

17
#2629 - Jonas Ng / @jnshey

05/15/2015 at 02:45PM

17
#2630 - Wayne Franklin / @waf1waf

05/26/2015 at 01:12AM

17
#2631 - Steven Craft / @stevenjohncraft

05/26/2015 at 11:09AM

17
#2632 - Robert Robertson / @RobertC3228687

05/27/2015 at 06:29PM

17
#2633 - Lauri Niskanen / @ape3000

06/01/2015 at 04:24PM

17
#2634 - Magnus Stavngaard / @bus3450

06/01/2015 at 05:44PM

17
#2635 - Zack Rosen / @ZJRosen

06/04/2015 at 05:46AM

17
#2636 - Alex / @ninjabassist777

06/12/2015 at 09:18PM

17
#2637 - Guillaume / @arteymix

06/24/2015 at 04:36AM

17
#2638 - Jesús Iniesta / @jesusiniesta

06/24/2015 at 09:45AM

17
#2639 - Shizukesa / @Shizukesa

07/06/2015 at 06:47PM

17
#2640 - teilersumme / @teilersumme

07/08/2015 at 11:38PM