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
#2401 - Rajeev Ranjan Jha / @rajeevcreatorjh

02/10/2018 at 04:43PM

16
#2402 - Frankie Liu / @pi31415629

02/10/2018 at 09:16PM

16
#2403 - oceanarium / @oceanarium1

02/21/2018 at 02:07PM

16
#2404 - Arūnas Smaliukas / @ArnasSmaliukas1

02/22/2018 at 08:56PM

16
#2405 - Scott Smith / @Scottaino

02/25/2018 at 01:57AM

16
#2406 - Jason Smythe / @JasoonSmythe

02/25/2018 at 10:22AM

16
#2407 - Dinh Ngoc Hai / @_dhai__

02/26/2018 at 05:07AM

16
#2408 - 王有铭 / @wangyouming1209

02/26/2018 at 02:25PM

16
#2409 - Andrew Mack / @andrewrmack1

03/02/2018 at 06:43PM

16
#2410 - Ленар / @LShagiev

03/09/2018 at 04:02PM

16
#2411 - Sergio Semedi / @SergioSemedi

03/11/2018 at 01:59PM

16
#2412 - Tim Boooo-ckley 👻 / @timbucki

03/23/2018 at 01:23AM

16
#2413 - Maxim I. Gavrilov / @MaximGavrilov

04/28/2018 at 11:38AM

16
#2414 - David Capper / @DavidMCapper

04/29/2018 at 03:40PM

16
#2415 - Daniel Liu / @idanieliu

05/03/2018 at 04:57AM

16
#2416 - Melker Fläskberg / @Mawkler

05/03/2018 at 12:22PM

16
#2417 - SplinterPie / @splinter_pie

05/03/2018 at 07:18PM

16
#2418 - Johann Og / @Kronolynx

05/03/2018 at 11:28PM

16
#2419 - Sean Earle / @Hell_Rok

05/04/2018 at 06:54AM

16
#2420 - Luke Lee / @luke0201

05/05/2018 at 08:18AM

16
#2421 - Bimal Gaudel / @BimalGaudel

05/05/2018 at 03:40PM

16
#2422 - Niels Pedersen / @NielsLearnsPy

05/07/2018 at 05:59AM

16
#2423 - Zach Johnson / @zachjohnsondev

05/07/2018 at 08:46PM

16
#2424 - Just...That / @I_am_JustThat

05/11/2018 at 12:20AM

16
#2425 - Le Lycal / @LeLycal

05/11/2018 at 11:20AM

16
#2426 - Anders / @cptand

05/11/2018 at 11:00PM

16
#2427 - tue2truong / @tue2truong1

05/25/2018 at 01:24PM

16
#2428 - Boda / @Boda47528108

06/04/2018 at 10:28AM

16
#2429 - Michael Dürrleder / @MichaelDrrleder

06/07/2018 at 09:09PM

16
#2430 - Jules Wichita / @octarlol

06/07/2018 at 09:16PM