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):
17
#2671 - noname / @banxjal2

02/05/2016 at 04:42PM

17
#2672 - Etienne Tremel / @etiennetremel

02/07/2016 at 11:42AM

17
#2673 - Andre Danielsson / @DanielssonAndre

02/08/2016 at 07:54PM

17
#2674 - Maciej Panasiewicz / @Grunthor1

02/18/2016 at 11:05PM

17
#2675 - Thomas Ellsworth / @twig1337

02/19/2016 at 05:52PM

17
#2676 - Alexej Kowalew / @AlexejKowalew

02/20/2016 at 09:11PM

17
#2677 - Yuval Netanel / @Yuval5555

02/21/2016 at 11:12AM

17
#2678 - Marco Tanner / @tannerli

02/23/2016 at 08:50AM

17
#2679 - Kevin Sapper / @kevin_sapper

03/01/2016 at 07:31AM

17
#2680 - Michael Potter / @MicLeviPotter

03/02/2016 at 06:07AM

17
#2681 - glepha / @glepha_vim

03/04/2016 at 02:19AM

17
#2682 - [onion] chesse / @onion_chesse

03/29/2016 at 12:15AM

17
#2683 - Ian Malerich / @IMalerich

05/03/2016 at 08:22PM

17
#2684 - Johannes / @jossi166

05/17/2016 at 08:06PM

17
#2685 - pwahs / @PwahsWeisz

06/02/2016 at 01:57PM

17
#2686 - 白猫(zhu) / @cat2flower

06/03/2016 at 10:18AM

17
#2687 - Byron Marohn / @byron_marohn

06/23/2016 at 08:19PM

17
#2688 - Dan Madden / @guthran

07/15/2016 at 02:08PM

17
#2689 - André Peric Tavares / @andre_peric

07/20/2016 at 07:17PM

17
#2690 - Jordan Wightman / @tuo2

08/13/2016 at 11:25AM

17
#2691 - みざくら / @mizakura07

08/20/2016 at 08:35AM

17
#2692 - Antonio Bustos / @antoniobusrod

08/20/2016 at 06:08PM

17
#2693 - Derrick Camerino / @robustdj

08/23/2016 at 01:52AM

17
#2694 - kai / @klc1989110

08/27/2016 at 12:59AM

17
#2695 - 이선협 / @kciter

09/01/2016 at 06:30AM

17
#2696 - Alexey / @AlexeyKarpelev

09/02/2016 at 07:31AM

17
#2697 - Constantine / @ConstantineHatz

09/12/2016 at 09:58PM

17
#2698 - Andrew Jackson / @andrewj_nz

09/17/2016 at 07:50PM

17
#2699 - Joel Gallant / @joelg236

09/30/2016 at 02:19PM

17
#2700 - jinx balotchnik / @balotchnik

10/14/2016 at 10:25PM