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 4093 remaining solutions by signing in and submitting your own entry
#4094 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

4094 active golfers, 15634 entries

Leaderboard (lowest score wins):
23
#3811 - Rodrigo Ceccato de Freitas / @_fopor

04/12/2019 at 11:59PM

23
#3812 - Akshay Aurora / @akshayaurora

04/13/2019 at 09:53PM

23
#3813 - Yegor Myshlyaev / @YegorMy

04/15/2019 at 10:06AM

23
#3814 - Dheerendra Rathor / @dheerendra_sr

05/15/2019 at 03:46PM

23
#3815 - majo senf / @majo_senf

06/14/2019 at 08:05AM

23
#3816 - Andy Mc / @Mcsweena

06/19/2019 at 09:39AM

23
#3817 - Hung Hoang / @hoanghun5

08/26/2019 at 12:44PM

23
#3818 - Rajasegar Chandran / @rajasegar_c

09/25/2019 at 06:46AM

23
#3819 - Timo Böhm / @TimoBohm

11/24/2019 at 07:52PM

23
#3820 - oponkork / @oponkork

01/13/2020 at 05:06PM

23
#3821 - Iuno Jones / @IunoJones

01/30/2020 at 08:39PM

23
#3822 - ChapelHillSooner / @HillSooner

02/13/2020 at 04:31PM

23
#3823 - Chris Fowler / @ChrisFowler3

04/05/2020 at 09:55AM

23
#3824 - Johnny F. Horvi / @j_hrv

04/29/2020 at 06:46PM

23
#3825 - Sarayut Lawilai / @imkopkap

05/13/2020 at 08:27AM

23
#3826 - Yavor Nenov / @YavorNe

06/21/2020 at 09:17PM

23
#3827 - gchain / @gchain7

08/21/2020 at 05:19PM

23
#3828 - 1 / @Shafouz

08/31/2020 at 01:16AM

23
#3829 - abhijeet patil / @abhijeetptl5

09/02/2020 at 06:08PM

23
#3830 - vimgolf throwaway / @vimgolfthrowaw3

12/12/2020 at 07:30AM

23
#3831 - dvorak4tzx / @dvorak4tzx4

12/28/2020 at 05:10PM

23
#3832 - Marcin Dostojewski / @MarcinekAGH

01/10/2021 at 03:05PM

23
#3833 - guidoguidoguido / @un_nome_stupido

04/29/2021 at 12:26PM

24
#3834 - Yoav Weiss / @yoavweiss

12/03/2014 at 05:51AM

24
#3835 - Vittorio Tortugo / @vik_rocknrolla

12/22/2014 at 10:42AM

24
#3836 - Johnny Develop / @johnnydevelop

12/22/2014 at 06:38PM

24
#3837 - Chaitanya Desu / @ChaituNu

01/10/2015 at 09:29PM

24
#3838 - OlivierLi / @LiZhongSin

02/16/2015 at 06:48PM

24
#3839 - Jeffrey Gu / @Jeffrey_Gu

03/12/2015 at 03:32PM

24
#3840 - Duncan Frost / @NinjaDuncan

03/20/2015 at 12:08PM