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

3962 active golfers, 15136 entries

Leaderboard (lowest score wins):
16
#2281 - Jason Garber / @jasongarber

01/01/2015 at 02:19PM

16
#2282 - Alex Foster / @alexjfno1

01/02/2015 at 01:46PM

16
#2283 - AA / @john42luke

01/02/2015 at 06:11PM

16
#2284 - Doug Sheffer / @desheffer

01/09/2015 at 05:38AM

16
#2285 - Alexey Kalinin / @hsalkaline

01/10/2015 at 11:46PM

16
#2286 - Barrios Blue / @barriosblue

01/14/2015 at 05:14AM

16
#2287 - Joseph Roberts / @joey9801

01/23/2015 at 01:51PM

16
#2288 - Gary Liddon / @gyratory

01/30/2015 at 09:14AM

16
#2289 - Larry Battle / @LarryBattle

02/01/2015 at 07:08AM

16
#2290 - Andrew Joe / @andrewajoe

02/01/2015 at 07:22AM

16
#2291 - Tzipan / @Tzipan

02/05/2015 at 12:32AM

16
#2292 - $jeremieP; / @jeremieP

02/06/2015 at 02:19PM

16
#2293 - gturri / @g_turri

02/08/2015 at 08:21AM

16
#2294 - Alex Girdler / @zraved

02/12/2015 at 04:58AM

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

02/12/2015 at 06:26AM

16
#2296 - wilddog64 / @chengkai318

02/12/2015 at 07:06PM

16
#2297 - d1uckym d1uckym / @d1uckym

02/14/2015 at 09:36PM

16
#2298 - Joshua Draper / @JoshuaBDraper

02/15/2015 at 04:02AM

16
#2299 - YK / @Dongas420

03/01/2015 at 02:01AM

16
#2300 - Gowtham Madhava / @gowthamgowtham

03/03/2015 at 05:13PM

16
#2301 - tarikamar / @tarikamar

03/04/2015 at 09:31AM

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

03/04/2015 at 07:24PM

16
#2303 - Ch Ri / @szirocco

03/09/2015 at 10:23AM

16
#2304 - Grigoriy Glushko / @grinderrz

03/12/2015 at 03:05PM

16
#2305 - nikita korotkih / @NikitaKorotkih

03/15/2015 at 11:17AM

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

03/18/2015 at 05:17PM

16
#2307 - James Reichley / @JimGDawg

03/19/2015 at 01:46AM

16
#2308 - Nelson Senna / @nelson_senna

03/19/2015 at 11:13PM

16
#2309 - Johan Adriaans / @JohanAdriaans

03/20/2015 at 11:32AM

16
#2310 - Shawn Axsom / @ShawnAxsom

03/22/2015 at 12:37PM