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

3927 active golfers, 14996 entries

Leaderboard (lowest score wins):
15
#1981 - luffy / @raxcoi

11/09/2015 at 02:01PM

15
#1982 - iershov / @thorny_hamster

11/27/2015 at 11:12PM

15
#1983 - Bruno Vieira Costa / @bruno_vcosta

11/28/2015 at 10:22PM

15
#1984 - Rodrigo Ponce d León / @rponce_89

12/03/2015 at 11:46PM

15
#1985 - SundaraRaman / @digital_carver

12/05/2015 at 04:55PM

15
#1986 - Ethan Stewart / @EthanS279

12/23/2015 at 09:18PM

15
#1987 - Jakob Schöttl / @jschoettl

12/31/2015 at 07:57AM

15
#1988 - Andrea Rossi / @lucidstack

01/03/2016 at 02:46PM

15
#1989 - Jérôme Salignon / @JeromeSalignon

01/10/2016 at 01:28PM

15
#1990 - aashiq / @aashiq

01/12/2016 at 08:59AM

15
#1991 - John Traji / @JTraji

02/02/2016 at 09:06PM

15
#1992 - Cristian Lupașcu / @clupasq

02/03/2016 at 09:36AM

15
#1993 - よねおか / @karaagegohan_

02/10/2016 at 01:52PM

15
#1994 - Janine Cheng / @janineist

02/13/2016 at 04:42AM

15
#1995 - udreki / @udreki

02/20/2016 at 07:42AM

15
#1996 - Stefan Sonski / @stefansonski

02/28/2016 at 05:18PM

15
#1997 - Michel Ganguin / @tinycrazyfish

03/02/2016 at 09:32AM

15
#1998 - Tomasz Walotek / @uolot

03/04/2016 at 10:56AM

15
#1999 - aestetix / @aestetix

03/06/2016 at 11:15PM

15
#2000 - Joshua Clark / @propjohn

03/10/2016 at 03:33AM

15
#2001 - Jason Knight / @binarybana

03/11/2016 at 04:20PM

15
#2002 - Nathan Brown / @nkabrownie

03/15/2016 at 01:06PM

15
#2003 - Andy Locascio / @lowkaseo

03/20/2016 at 02:35AM

15
#2004 - Jason Choi / @joyous_jason

03/22/2016 at 10:48AM

15
#2005 - lilach adir / @leelaRed

03/31/2016 at 08:07AM

15
#2006 - Simon / @0xa5a5

04/02/2016 at 08:43AM

15
#2007 - neptunepink / @neptunepunk

04/06/2016 at 08:05PM

15
#2008 - Christian Franke / @franke_chriss

04/22/2016 at 06:20PM

15
#2009 - Nicholas Marasco / @Zero_Toast

04/29/2016 at 12:33AM

15
#2010 - Rob Ert / @robrunner888

05/09/2016 at 11:13AM