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
#2791 - Dieter Adriaenssens / @dcadriaenssens

04/14/2018 at 08:30PM

17
#2792 - Iván Burgos / @Navo_Tivetano

04/17/2018 at 09:36PM

17
#2793 - akccakcctw / @akccakcctw

04/26/2018 at 07:56AM

17
#2794 - Robopengwin / @robopengwin

05/02/2018 at 06:01AM

17
#2795 - Artemiy Rodionov / @sn00pt

05/03/2018 at 10:30AM

17
#2796 - Wake Lankard / @wakelank

05/03/2018 at 09:59PM

17
#2797 - . / @ningOTI

05/05/2018 at 11:43AM

17
#2798 - Jean-paul Barbier / @jpdobar

05/05/2018 at 04:49PM

17
#2799 - liberforce / @liberforce1

05/27/2018 at 11:53AM

17
#2800 - Florian Kempenich / @ThisIsFlorianK

06/07/2018 at 06:13PM

17
#2801 - Mateen Ulhaq / @sicariusnoctis

06/10/2018 at 02:18AM

17
#2802 - testasddae / @testasddae

06/17/2018 at 03:28PM

17
#2803 - 나라 / @naracon03

06/29/2018 at 08:30AM

17
#2804 - Gemille Ford / @gemilleford

07/02/2018 at 02:48AM

17
#2805 - rhys ormond / @rhysormond

07/08/2018 at 04:18PM

17
#2806 - Kosuke Hamada / @hamakou108

07/14/2018 at 02:38PM

17
#2807 - niwatoco / @yoshitune9

07/16/2018 at 02:30PM

17
#2808 - Andrey / @Andrey41499812

07/17/2018 at 03:13PM

17
#2809 - Apox / @apox159

07/18/2018 at 09:38PM

17
#2810 - Andrew Peterson / @FungalRaincloud

07/26/2018 at 11:57PM

17
#2811 - Shea Munion / @sheamunion

07/27/2018 at 04:10PM

17
#2812 - Brandon Emery Craig / @iambcraig

08/03/2018 at 07:25PM

17
#2813 - JanSt / @JanSt48935031

08/11/2018 at 05:52PM

17
#2814 - Chirag Joshi / @thechijos

08/13/2018 at 01:04AM

17
#2815 - KTL / @katielundsgaard

08/17/2018 at 10:58PM

17
#2816 - 安藤 / @andou2106

09/03/2018 at 02:17PM

17
#2817 - Ryan Travitz / @rtravitz

09/11/2018 at 06:33PM

17
#2818 - Marc André Freiheit / @marc_freiheit

09/21/2018 at 02:48PM

17
#2819 - Joel Schlosser / @joel_schlosser

10/03/2018 at 08:21PM

17
#2820 - Juan / @jubujjamer

10/16/2018 at 03:15AM