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

3964 active golfers, 15145 entries

Leaderboard (lowest score wins):
18
#3031 - George Angelopoulos / @g_usermod

08/04/2016 at 07:40PM

18
#3032 - Micha / @michman89

08/08/2016 at 12:33PM

18
#3033 - Assaf Lavi / @assaflavi

08/10/2016 at 07:24AM

18
#3034 - Rosalie Tolentino / @rosatolen

08/14/2016 at 09:28PM

18
#3035 - Climate Worries / @climateworries

08/24/2016 at 08:18PM

18
#3036 - Rizart Dokollari / @rdokollari

09/15/2016 at 09:18AM

18
#3037 - Batuhan Bayrakçı / @bay_batu

09/18/2016 at 11:23AM

18
#3038 - TweetDreams / @TweetMusicians

10/08/2016 at 08:38AM

18
#3039 - Chris Cummings / @mistahcummings

10/30/2016 at 11:43PM

18
#3040 - Awakening George / @GeorgeC_monster

10/31/2016 at 01:53AM

18
#3041 - timerella® / @timerella

11/16/2016 at 08:45PM

18
#3042 - thialfihar / @thialfihar

11/20/2016 at 12:09PM

18
#3043 - janusz janusz / @januszjanusz20

12/16/2016 at 08:46PM

18
#3044 - Markus Lux / @_l0x_

01/03/2017 at 01:30PM

18
#3045 - Damien BRY ⚡️ / @orbmancer

01/11/2017 at 04:40PM

18
#3046 - micro J / @microjoint

01/20/2017 at 12:47PM

18
#3047 - VpzomTrrfrt / @vpzomtrrfrt

02/17/2017 at 11:41PM

18
#3048 - Lubinator / @Lubinator2

02/20/2017 at 06:10PM

18
#3049 - 박명호 / @cruck103

02/24/2017 at 12:13PM

18
#3050 - Mads Jensen / @mads_je

02/24/2017 at 02:18PM

18
#3051 - camden bickel / @camdenbickel

02/24/2017 at 09:15PM

18
#3052 - Amber Chen / @AmberCh63187797

03/03/2017 at 05:47AM

18
#3053 - Eric Bakan / @ericbakan

03/14/2017 at 08:19PM

18
#3054 - Миша Сорокин / @rafmikovi4

04/08/2017 at 09:06PM

18
#3055 - magizbox / @rain_1024

05/06/2017 at 01:14PM

18
#3056 - Jenny Johnson / @Kippz07

05/06/2017 at 05:06PM

18
#3057 - python-tweepy / @python_tweepy

05/15/2017 at 01:31AM

18
#3058 - linealloop / @linealloop

05/18/2017 at 11:10PM

18
#3059 - Juho Härme / @jharme

05/22/2017 at 08:08PM

18
#3060 - Anders Schramm / @AndersSchramm

05/23/2017 at 11:14AM