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

3854 active golfers, 14691 entries

Leaderboard (lowest score wins):
16
#2221 - Larry Battle / @LarryBattle

02/01/2015 at 07:08AM

16
#2222 - Andrew Joe / @andrewajoe

02/01/2015 at 07:22AM

16
#2223 - Tzipan / @Tzipan

02/05/2015 at 12:32AM

16
#2224 - $jeremieP; / @jeremieP

02/06/2015 at 02:19PM

16
#2225 - gturri / @g_turri

02/08/2015 at 08:21AM

16
#2226 - Alex Girdler / @zraved

02/12/2015 at 04:58AM

16
#2227 - かっかる / @86ktcal

02/12/2015 at 06:26AM

16
#2228 - wilddog64 / @chengkai318

02/12/2015 at 07:06PM

16
#2229 - d1uckym d1uckym / @d1uckym

02/14/2015 at 09:36PM

16
#2230 - Joshua Draper / @JoshuaBDraper

02/15/2015 at 04:02AM

16
#2231 - YK / @Dongas420

03/01/2015 at 02:01AM

16
#2232 - Gowtham Madhava / @gowthamgowtham

03/03/2015 at 05:13PM

16
#2233 - tarikamar / @tarikamar

03/04/2015 at 09:31AM

16
#2234 - Олександр Крилов / @o_v_krylov

03/04/2015 at 07:24PM

16
#2235 - Ch Ri / @szirocco

03/09/2015 at 10:23AM

16
#2236 - Grigoriy Glushko / @grinderrz

03/12/2015 at 03:05PM

16
#2237 - nikita korotkih / @NikitaKorotkih

03/15/2015 at 11:17AM

16
#2238 - J-F R. / @RheaultJF

03/18/2015 at 05:17PM

16
#2239 - James Reichley / @JimGDawg

03/19/2015 at 01:46AM

16
#2240 - Nelson Senna / @nelson_senna

03/19/2015 at 11:13PM

16
#2241 - Johan Adriaans / @JohanAdriaans

03/20/2015 at 11:32AM

16
#2242 - Shawn Axsom / @ShawnAxsom

03/22/2015 at 12:37PM

16
#2243 - Alexander Borysov / @ab99c5e2

03/23/2015 at 11:34AM

16
#2244 - David Orr / @dorr91

03/23/2015 at 05:47PM

16
#2245 - Wei Liu / @iliuw

03/23/2015 at 09:59PM

16
#2246 - ɐʇnɥsɐpoʇ / @todashuta

03/25/2015 at 08:52AM

16
#2247 - Ethan Madison / @_ethanmad

04/06/2015 at 04:15AM

16
#2248 - Hendrik Lammers / @hendriklammers

04/07/2015 at 07:08PM

16
#2249 - cg.sg.im / @CoGe_StGa_idma

04/08/2015 at 12:20AM

16
#2250 - 김재겸 / @KimJaeKyeom

04/20/2015 at 05:59AM