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):
16
#2491 - Anonymos / @cyou_teyi

10/29/2018 at 11:24AM

16
#2492 - faisal / @faisalhackshah

11/25/2018 at 01:51AM

16
#2493 - CptBong / @cpt1bong

11/27/2018 at 11:56PM

16
#2494 - Nick Induni / @NickInduni

11/29/2018 at 01:33AM

16
#2495 - melts / @melts

01/09/2019 at 09:41PM

16
#2496 - Bao Dang / @baodang02

01/12/2019 at 06:29AM

16
#2497 - Oleg Marakhovsky / @OMarakhovsky

01/14/2019 at 12:59PM

16
#2498 - Deepstack / @deepstackux

01/29/2019 at 04:14PM

16
#2499 - hbdgr / @t_hbdgr

01/30/2019 at 09:06PM

16
#2500 - Patrick Lavin / @LavinComputes

01/31/2019 at 07:54PM

16
#2501 - AetherLuminifer / @AetherLuminifer

02/08/2019 at 09:10AM

16
#2502 - Wei Wen / @goweiwen

02/14/2019 at 03:04AM

16
#2503 - əarth simulator / @eidoloncity

02/28/2019 at 03:02PM

16
#2504 - Gabriel / @cimourdain

03/22/2019 at 02:38PM

16
#2505 - Timothy Bryan / @tim_bryan

04/10/2019 at 03:27PM

16
#2506 - Branden Clark / @clarkb_cs

04/19/2019 at 04:54AM

16
#2507 - Antwane Mason / @admason1413

04/26/2019 at 07:31PM

16
#2508 - Sam Miller / @sam_miller93

04/28/2019 at 01:37PM

16
#2509 - JvdB01 / @JvdB001

05/09/2019 at 06:23PM

16
#2510 - Shahin Mohammad Sali / @shaahiinms

05/13/2019 at 05:14AM

16
#2511 - Mat / @matpbo

05/17/2019 at 05:47PM

16
#2512 - Edan Sneh / @edan_sneh

06/04/2019 at 08:07AM

16
#2513 - Erik Mattfolk / @ErikMattfolk

06/06/2019 at 11:03AM

16
#2514 - Shyam Padia / @thegeektherapy

06/09/2019 at 08:42PM

16
#2515 - Rohit Kumar Jena / @rohitrango

07/05/2019 at 06:11AM

16
#2516 - Przemek Kurek / @PrzemekKurek

08/05/2019 at 08:07PM

16
#2517 - Matt Tuttle / @Matt_Tuttle

08/09/2019 at 05:10PM

16
#2518 - Daniel Morandini / @MorandiniDaniel

08/21/2019 at 02:55PM

16
#2519 - Petter Wahlman / @badeip

08/28/2019 at 04:30AM

16
#2520 - ciela / @lededex

08/28/2019 at 05:14PM