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
#2521 - Brice Letcher / @bricoletc

08/29/2019 at 09:12PM

16
#2522 - Brandon Harrison / @llAboutB

09/24/2019 at 04:25PM

16
#2523 - majuscule / @majuscule13

09/27/2019 at 06:31PM

16
#2524 - s3n a6n / @0x12b

10/18/2019 at 10:15PM

16
#2525 - pierre / @pierre46315964

10/25/2019 at 01:30PM

16
#2526 - Keith Klassen / @Collegekid491

11/02/2019 at 09:52PM

16
#2527 - Sebastien Premont / @spremont

11/14/2019 at 10:14PM

16
#2528 - fritz_carraldo / @fritz_carraldo

11/18/2019 at 04:16AM

16
#2529 - Minyi Zhong / @minyi_zhong

11/22/2019 at 02:13AM

16
#2530 - Alexandre / @Hikaru_

11/22/2019 at 02:40PM

16
#2531 - James Houghton / @jamesthoughton

12/06/2019 at 02:38AM

16
#2532 - vlad / @vlad_chub

12/07/2019 at 08:40PM

16
#2533 - mowglian / @mowglian

01/09/2020 at 11:28AM

16
#2534 - vimgolfer / @vimgolfer13

01/12/2020 at 09:23PM

16
#2535 - Matthew Wintersteen / @mattt_w4

01/23/2020 at 03:23AM

16
#2536 - warwickrulez / @warwickrulez

01/24/2020 at 09:04PM

16
#2537 - lin / @l_shi1

01/31/2020 at 07:34AM

16
#2538 - Falafel Palapel / @falafelpalapel

02/11/2020 at 07:22PM

16
#2539 - Ick / @Ickaser

02/13/2020 at 04:32AM

16
#2540 - AtomToast / @AtomTo4st

02/26/2020 at 10:17PM

16
#2541 - finn.mertens / @finnmer22139082

03/12/2020 at 07:01AM

16
#2542 - Joe Farnsworth / @JoeFarnsworth

03/25/2020 at 03:26AM

16
#2543 - Philip R. Rothschild / @Kitten_Popo

04/01/2020 at 12:15PM

16
#2544 - Harsh Raj / @harshraj22aug

04/06/2020 at 07:08PM

16
#2545 - Austin Letson / @austin_letson

04/24/2020 at 03:56PM

16
#2546 - Wolodymyr Krywonos / @WKrywonos

04/24/2020 at 05:40PM

16
#2547 - Dionysus / @user101user

05/06/2020 at 02:16AM

16
#2548 - Tzero Ocne / @TzeroOcne

05/08/2020 at 11:22AM

16
#2549 - Simon Vansuyt / @4050e86aff184e4

05/11/2020 at 08:31PM

16
#2550 - Ciaran Sundborg / @intrntsmostholy

05/13/2020 at 07:38PM